[FFmpeg-cvslog] r12943 - trunk/libavformat/mpegts.c
michael
subversion
Fri Apr 25 00:16:01 CEST 2008
Author: michael
Date: Fri Apr 25 00:16:00 2008
New Revision: 12943
Log:
Fixing memleaks.
Modified:
trunk/libavformat/mpegts.c
Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c (original)
+++ trunk/libavformat/mpegts.c Fri Apr 25 00:16:00 2008
@@ -767,6 +767,8 @@ static void sdt_cb(MpegTSFilter *filter,
if(program)
av_set_program_name(program, provider_name, name);
}
+ av_free(name);
+ av_free(provider_name);
break;
default:
break;
@@ -1370,6 +1372,9 @@ static int mpegts_read_close(AVFormatCon
{
MpegTSContext *ts = s->priv_data;
int i;
+
+ clear_programs(ts);
+
for(i=0;i<NB_PID_MAX;i++)
if (ts->pids[i]) mpegts_close_filter(ts, ts->pids[i]);
More information about the ffmpeg-cvslog
mailing list