* The collection on the period was never unreffed
* The collection in the message handler was never unreffed
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
/* Disable and remove all streams and tracks. */
g_list_free_full (period->streams, (GDestroyNotify) gst_object_unref);
+ if (period->collection)
+ gst_object_unref (period->collection);
+
/* Theoretically all tracks should have gone by now */
GST_DEBUG ("Disabling and removing all tracks");
g_list_free_full (period->tracks,
beach:
GST_MANIFEST_UNLOCK (demux);
+ if (collection)
+ gst_object_unref (collection);
gst_message_unref (msg);
msg = NULL;
}