mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
decodebin3: fix collection leak
get_merged_collection() returns an owned stream collection and was leaked in the else block. Fix leak when running: GST_TRACERS=leaks GST_DEBUG="GST_TRACER:7,leaks:6" gst-play-1.0 --use-playbin3 test.mkv Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2216>
This commit is contained in:
parent
60eca23bef
commit
86e46e6c83
1 changed files with 4 additions and 1 deletions
|
@ -930,8 +930,11 @@ gst_decodebin3_input_pad_unlink (GstPad * pad, GstObject * parent)
|
|||
SELECTION_UNLOCK (dbin);
|
||||
gst_element_post_message (GST_ELEMENT_CAST (dbin), msg);
|
||||
update_requested_selection (dbin);
|
||||
} else
|
||||
} else {
|
||||
if (collection)
|
||||
gst_object_unref (collection);
|
||||
SELECTION_UNLOCK (dbin);
|
||||
}
|
||||
|
||||
gst_bin_remove (GST_BIN (dbin), input->parsebin);
|
||||
gst_element_set_state (input->parsebin, GST_STATE_NULL);
|
||||
|
|
Loading…
Reference in a new issue