Commit 29a7b8ef authored by Ramiro Polla's avatar Ramiro Polla

Fix memleak

Closes issue 102

Originally committed as revision 10719 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6ad42348
......@@ -878,10 +878,13 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
return 0;
}
static void asf_reset_header(AVFormatContext *s);
static int asf_read_close(AVFormatContext *s)
{
int i;
asf_reset_header(s);
for(i=0;i<s->nb_streams;i++) {
AVStream *st = s->streams[i];
av_free(st->priv_data);
......
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