mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
mpegtsdemux: fix a memory leak
This commit is contained in:
parent
1a9b54b781
commit
9861908926
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue