From 0ff317f1071c648db5d06bf39be16d1a08e23348 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 11 Aug 2022 00:59:50 +1000 Subject: [PATCH] hlsdemux2: m3u8: Fix memory leak Clear the GValue holding intermediate GstStructure field data. Part-of: --- subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c index da9fd6e12d..b0a1161c27 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/hls/m3u8.c @@ -2228,6 +2228,7 @@ remove_uncommon (GQuark field_id, GValue * value, GstStructure * st2) g_value_reset (value); g_value_copy (&dest, value); + g_value_reset (&dest); return TRUE; }