From: Guillaume Desmottes Date: Tue, 28 Apr 2015 08:13:35 +0000 (+0200) Subject: tsdemux: fix taglist leak X-Git-Tag: 1.19.3~507^2~8859 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94446498de2c49aa636cd1dffbc03c0bf4793eae;p=platform%2Fupstream%2Fgstreamer.git tsdemux: fix taglist leak If the stream which is about to be removed still has a ref on a tag list we should drop it. Fix a leak which was occasionally happening with the validate.file.playback.change_state_intensive.tron_en_ge_aac_h264_ts scenario. https://bugzilla.gnome.org/show_bug.cgi?id=748576 --- diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index bf8c88a..e8c13f6 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1492,6 +1492,11 @@ gst_ts_demux_stream_removed (MpegTSBase * base, MpegTSBaseStream * bstream) gst_ts_demux_stream_flush (stream, GST_TS_DEMUX_CAST (base), TRUE); + if (stream->taglist != NULL) { + gst_tag_list_unref (stream->taglist); + stream->taglist = NULL; + } + tsdemux_h264_parsing_info_clear (&stream->h264infos); }