mpegtsdemux: fix a memory leak

This commit is contained in:
Josep Torra 2009-08-07 19:12:26 +02:00
parent 1a9b54b781
commit 9861908926

View file

@ -385,7 +385,10 @@ gst_mpegts_demux_reset (GstMpegTSDemux * demux)
gst_section_filter_uninit (&stream->section_filter); gst_section_filter_uninit (&stream->section_filter);
break; break;
} }
if (stream->pes_buffer) {
gst_buffer_unref (stream->pes_buffer);
stream->pes_buffer = NULL;
}
g_free (stream); g_free (stream);
demux->streams[i] = NULL; demux->streams[i] = NULL;
} }