Fix memleak
Closes issue 102 Originally committed as revision 10719 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6ad423489e
commit
29a7b8ef27
@ -878,10 +878,13 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void asf_reset_header(AVFormatContext *s);
|
||||||
|
|
||||||
static int asf_read_close(AVFormatContext *s)
|
static int asf_read_close(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
asf_reset_header(s);
|
||||||
for(i=0;i<s->nb_streams;i++) {
|
for(i=0;i<s->nb_streams;i++) {
|
||||||
AVStream *st = s->streams[i];
|
AVStream *st = s->streams[i];
|
||||||
av_free(st->priv_data);
|
av_free(st->priv_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user