adaptivedemux: fix pending tags leak
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 18 May 2016 13:55:38 +0000 (16:55 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 19 May 2016 19:44:25 +0000 (20:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=766662

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

index 47a7899..61111c4 100644 (file)
@@ -1219,6 +1219,8 @@ gst_adaptive_demux_stream_free (GstAdaptiveDemuxStream * stream)
   if (stream->pending_caps)
     gst_caps_unref (stream->pending_caps);
 
+  g_clear_pointer (&stream->pending_tags, gst_tag_list_unref);
+
   g_object_unref (stream->adapter);
 
   g_free (stream);