From: Guillaume Desmottes Date: Wed, 21 Dec 2022 14:35:21 +0000 (+0100) Subject: uridecodebin3: fix stream leak X-Git-Tag: 1.22.0~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cad0768191f31401e02e70f76b7f42cdf73bfb5f;p=platform%2Fupstream%2Fgstreamer.git uridecodebin3: fix stream leak GstSourcePad owns the GstStream but was not unreffing it when being disposed. Part-of: --- diff --git a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c index ed317c94df..724ea7e5e8 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c @@ -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); }