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); }