hlsdemux2: m3u8: Fix memory leak

Clear the GValue holding intermediate GstStructure field
data.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2873>
This commit is contained in:
Jan Schmidt 2022-08-11 00:59:50 +10:00 committed by GStreamer Marge Bot
parent fd64e8c7ed
commit 0ff317f107

View file

@ -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;
}