From: Jose Antonio Santos Cadenas Date: Wed, 13 May 2015 13:59:48 +0000 (+0200) Subject: dtlsenc: Fix memory leak releasing connection_id X-Git-Tag: 1.19.3~507^2~8776 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aae1a5e2cefa626665d5ddfc869fe6aefa1b99ee;p=platform%2Fupstream%2Fgstreamer.git dtlsenc: Fix memory leak releasing connection_id https://bugzilla.gnome.org/show_bug.cgi?id=749318 --- diff --git a/ext/dtls/gstdtlsenc.c b/ext/dtls/gstdtlsenc.c index 08b6444..96dfa54 100644 --- a/ext/dtls/gstdtlsenc.c +++ b/ext/dtls/gstdtlsenc.c @@ -209,6 +209,11 @@ gst_dtls_enc_finalize (GObject * object) self->encoder_key = NULL; } + if (self->connection_id) { + g_free (self->connection_id); + self->connection_id = NULL; + } + g_mutex_lock (&self->queue_lock); g_queue_foreach (&self->queue, (GFunc) gst_buffer_unref, NULL); g_queue_clear (&self->queue);