From 6b0183b7bf0f0eb067c182f47f4b91d50a13f093 Mon Sep 17 00:00:00 2001 From: Jose Antonio Santos Cadenas Date: Wed, 13 May 2015 15:33:49 +0200 Subject: [PATCH] dtlsenc: Fix memory leak while setting connection-id https://bugzilla.gnome.org/show_bug.cgi?id=749318 --- ext/dtls/gstdtlsenc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/dtls/gstdtlsenc.c b/ext/dtls/gstdtlsenc.c index 477af10777..08b6444be5 100644 --- a/ext/dtls/gstdtlsenc.c +++ b/ext/dtls/gstdtlsenc.c @@ -230,6 +230,10 @@ gst_dtls_enc_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_CONNECTION_ID: + if (self->connection_id != NULL) { + g_free (self->connection_id); + self->connection_id = NULL; + } self->connection_id = g_value_dup_string (value); break; case PROP_IS_CLIENT: