playbin3: fix collection leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 22 Jul 2016 12:40:25 +0000 (14:40 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 25 Jul 2016 07:02:53 +0000 (09:02 +0200)
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

index bef39fd..00fb8e6 100644 (file)
@@ -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);