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
This commit is contained in:
Guillaume Desmottes 2016-07-22 14:40:25 +02:00 committed by Edward Hervey
parent 2c0a4d20d4
commit c1f37edfd9

View 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);