Commit 7d1950f8 authored by michael's avatar michael

Fix minor memory leak.

Patch by Jindrich Makovicka, approved by mans.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17021 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3967095d
...@@ -334,6 +334,13 @@ static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter) ...@@ -334,6 +334,13 @@ static void mpegts_close_filter(MpegTSContext *ts, MpegTSFilter *filter)
pid = filter->pid; pid = filter->pid;
if (filter->type == MPEGTS_SECTION) if (filter->type == MPEGTS_SECTION)
av_freep(&filter->u.section_filter.section_buf); av_freep(&filter->u.section_filter.section_buf);
else if (filter->type == MPEGTS_PES) {
/* referenced private data will be freed later in
* av_close_input_stream */
if (!((PESContext *)filter->u.pes_filter.opaque)->st) {
av_freep(&filter->u.pes_filter.opaque);
}
}
av_free(filter); av_free(filter);
ts->pids[pid] = NULL; ts->pids[pid] = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment