mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
dtlsenc: Fix memory leak releasing connection_id
https://bugzilla.gnome.org/show_bug.cgi?id=749318
This commit is contained in:
parent
6b0183b7bf
commit
aae1a5e2ce
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue