1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix memleak

Closes issue 102

Originally committed as revision 10719 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2007-10-12 23:25:48 +00:00
parent 6ad423489e
commit 29a7b8ef27

View File

@ -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);