Commit 25fc6e07 authored by michael's avatar michael

Fixing memleaks.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12943 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4a09a7f9
......@@ -767,6 +767,8 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
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(AVFormatContext *s)
{
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]);
......
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