From aae1a5e2cefa626665d5ddfc869fe6aefa1b99ee Mon Sep 17 00:00:00 2001 From: Jose Antonio Santos Cadenas Date: Wed, 13 May 2015 15:59:48 +0200 Subject: [PATCH] dtlsenc: Fix memory leak releasing connection_id https://bugzilla.gnome.org/show_bug.cgi?id=749318 --- ext/dtls/gstdtlsenc.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.7.4