From dee6536421a3f5d62264ddcca7954635f1c529fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 11 Feb 2013 20:24:14 +0000 Subject: [PATCH] mxfdemux: fix taglist leak Don't leak demuxer tag list. --- gst/mxf/mxfdemux.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c index 0a9bb64095..c7abe8c067 100644 --- a/gst/mxf/mxfdemux.c +++ b/gst/mxf/mxfdemux.c @@ -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); } -- 2.34.1