uridecodebin3: fix stream leak

GstSourcePad owns the GstStream but was not unreffing it when being
disposed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3617>
This commit is contained in:
Guillaume Desmottes 2022-12-21 15:35:21 +01:00 committed by GStreamer Marge Bot
parent da696477c6
commit cad0768191

View file

@ -1391,6 +1391,9 @@ src_pad_removed_cb (GstElement * element, GstPad * pad,
gst_element_release_request_pad (uridecodebin->decodebin,
spad->db3_sink_pad);
if (spad->stream)
gst_object_unref (spad->stream);
handler->sourcepads = g_list_remove (handler->sourcepads, spad);
g_slice_free (GstSourcePad, spad);
}