mxfdemux: fix taglist leak
authorTim-Philipp Müller <tim@centricular.net>
Mon, 11 Feb 2013 20:24:14 +0000 (20:24 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 11 Feb 2013 20:24:14 +0000 (20:24 +0000)
Don't leak demuxer tag list.

gst/mxf/mxfdemux.c

index 0a9bb64095c01040c8afc93c92637f1c67a20f96..c7abe8c067b2241364fa1d12471e6e7ab0942513 100644 (file)
@@ -225,6 +225,11 @@ gst_mxf_demux_reset_metadata (GstMXFDemux * demux)
   }
   demux->metadata = mxf_metadata_hash_table_new ();
 
+  if (demux->tags) {
+    gst_tag_list_unref (demux->tags);
+    demux->tags = NULL;
+  }
+
   g_rw_lock_writer_unlock (&demux->metadata_lock);
 }