From a742c3bf275bfef6e02b55e59b348314ad999194 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 Nov 2022 17:23:44 +0100 Subject: [PATCH] adaptivedemux2: Don't leak tags If we got them from GstStream, we should unref them when done Part-of: --- .../gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c index f5966f5..0bb75d2 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c @@ -2427,6 +2427,8 @@ can_handle_collection (GstAdaptiveDemux2Stream * stream, default: break; } + if (tags) + gst_tag_list_unref (tags); } /* Check that we either have at most 1 of each track type, or that -- 2.7.4