mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 10:38:27 +00:00
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:
parent
da696477c6
commit
cad0768191
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue