parsebin: Fix a potential stream collection leak

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5607>
This commit is contained in:
Philippe Normand 2023-10-31 16:26:38 +00:00 committed by GStreamer Marge Bot
parent b12d43bd89
commit f0e1b4f415

View file

@ -3637,6 +3637,8 @@ retry:
GST_WARNING_OBJECT (parsebin,
"Currently, shutting down, aborting exposing");
DYN_UNLOCK (parsebin);
if (fallback_collection)
gst_object_unref (fallback_collection);
return FALSE;
}