decodebin3: fix collection leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 25 May 2021 12:41:51 +0000 (14:41 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 18 Apr 2022 06:41:12 +0000 (09:41 +0300)
commite482b995fb96f5aabab4bfd7e8279e950c0a7037
tree46bfc161584c84b711310b656d510a8aa76f4029
parent4c5d34648c69be7ce29d29fe433bc2ad19c31cec
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/954>
subprojects/gst-plugins-base/gst/playback/gstdecodebin3.c