diff options
author | Josep Torra <n770galaxy@gmail.com> | 2009-08-07 19:12:26 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2009-08-07 19:12:26 +0200 |
commit | 986190892662219a6b1f265219957a8c7a15b299 (patch) | |
tree | 8b624d6bbf7af2290d0d8b00938084796e155b27 /gst/mpegdemux | |
parent | 1a9b54b7818b59786c524ff2604fd58cf926d3b7 (diff) | |
download | gst-plugins-bad-986190892662219a6b1f265219957a8c7a15b299.tar.gz gst-plugins-bad-986190892662219a6b1f265219957a8c7a15b299.tar.bz2 gst-plugins-bad-986190892662219a6b1f265219957a8c7a15b299.zip |
mpegtsdemux: fix a memory leak
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r-- | gst/mpegdemux/gstmpegtsdemux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c index 811646ee..5a9a41de 100644 --- a/gst/mpegdemux/gstmpegtsdemux.c +++ b/gst/mpegdemux/gstmpegtsdemux.c @@ -385,7 +385,10 @@ gst_mpegts_demux_reset (GstMpegTSDemux * demux) gst_section_filter_uninit (&stream->section_filter); break; } - + if (stream->pes_buffer) { + gst_buffer_unref (stream->pes_buffer); + stream->pes_buffer = NULL; + } g_free (stream); demux->streams[i] = NULL; } |