From cad0768191f31401e02e70f76b7f42cdf73bfb5f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 21 Dec 2022 15:35:21 +0100 Subject: [PATCH] uridecodebin3: fix stream leak GstSourcePad owns the GstStream but was not unreffing it when being disposed. Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c index ed317c9..724ea7e 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); } -- 2.7.4