From: Tim-Philipp Müller Date: Mon, 11 Feb 2013 20:24:14 +0000 (+0000) Subject: mxfdemux: fix taglist leak X-Git-Tag: 1.19.3~507^2~14100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dee6536421a3f5d62264ddcca7954635f1c529fe;p=platform%2Fupstream%2Fgstreamer.git mxfdemux: fix taglist leak Don't leak demuxer tag list. --- 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); }