From abb11ad8b4298a348aa79f6beacc30ef0640abbe Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 5 Dec 2024 09:21:04 +0100 Subject: [PATCH] urisourcebin: Fix collection leak Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c index d64c69099e..7e1b9910a0 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c @@ -3051,6 +3051,10 @@ handle_message (GstBin * bin, GstMessage * msg) gst_message_new_stream_collection ((GstObject *) urisrc, aggregated); } + if (aggregated) { + /* Remove ref obtained from aggregate_collection() */ + gst_object_unref (aggregated); + } gst_object_unref (collection); } }