[FFmpeg-cvslog] r17021 - trunk/libavformat/mpegts.c
michael
subversion
Fri Feb 6 21:30:19 CET 2009
Author: michael
Date: Fri Feb 6 21:30:18 2009
New Revision: 17021
Log:
Fix minor memory leak.
Patch by Jindrich Makovicka, approved by mans.
Modified:
trunk/libavformat/mpegts.c
Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c Fri Feb 6 16:30:41 2009 (r17020)
+++ trunk/libavformat/mpegts.c Fri Feb 6 21:30:18 2009 (r17021)
@@ -334,6 +334,13 @@ static void mpegts_close_filter(MpegTSCo
pid = filter->pid;
if (filter->type == MPEGTS_SECTION)
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);
ts->pids[pid] = NULL;
More information about the ffmpeg-cvslog
mailing list