mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
dtlsdec: Fix memory leak, release previous pem
https://bugzilla.gnome.org/show_bug.cgi?id=749322
This commit is contained in:
parent
2173f9f15d
commit
3c3d6e8828
1 changed files with 4 additions and 0 deletions
|
@ -443,6 +443,10 @@ on_peer_certificate_received (GstDtlsConnection * connection, gchar * pem,
|
|||
|
||||
GST_DEBUG_OBJECT (self, "Received peer certificate PEM: \n%s", pem);
|
||||
|
||||
if (self->peer_pem != NULL) {
|
||||
g_free (self->peer_pem);
|
||||
self->peer_pem = NULL;
|
||||
}
|
||||
self->peer_pem = g_strdup (pem);
|
||||
|
||||
ref = g_new (GWeakRef, 1);
|
||||
|
|
Loading…
Reference in a new issue