urisourcebin: Fix collection leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8080>
This commit is contained in:
Edward Hervey 2024-12-05 09:21:04 +01:00
parent 37087f129f
commit abb11ad8b4

View file

@ -3051,6 +3051,10 @@ handle_message (GstBin * bin, GstMessage * msg)
gst_message_new_stream_collection ((GstObject *) urisrc,
aggregated);
}
if (aggregated) {
/* Remove ref obtained from aggregate_collection() */
gst_object_unref (aggregated);
}
gst_object_unref (collection);
}
}