From c1f37edfd9e5939de78aa442afd5dec03e966193 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 22 Jul 2016 14:40:25 +0200 Subject: [PATCH] playbin3: fix collection leak The collection referenced owned by playbin3 was not released when it was destroyed. https://bugzilla.gnome.org/show_bug.cgi?id=769080 --- gst/playback/gstplaybin3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/playback/gstplaybin3.c b/gst/playback/gstplaybin3.c index bef39fd05..00fb8e6ef 100644 --- a/gst/playback/gstplaybin3.c +++ b/gst/playback/gstplaybin3.c @@ -1794,6 +1794,9 @@ gst_play_bin3_finalize (GObject * object) if (playbin->velements) g_sequence_free (playbin->velements); + if (playbin->collection) + gst_object_unref (playbin->collection); + g_list_free_full (playbin->contexts, (GDestroyNotify) gst_context_unref); g_rec_mutex_clear (&playbin->lock); -- 2.34.1