Originally committed as revision 2666 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-01-04 19:53:44 +00:00
parent ac548c5d1d
commit 3144b152a6
1 changed files with 4 additions and 2 deletions

View File

@ -659,8 +659,10 @@ static int avi_read_close(AVFormatContext *s)
for(i=0;i<s->nb_streams;i++) {
AVStream *st = s->streams[i];
AVIStream *ast = st->priv_data;
av_free(ast->index_entries);
av_free(ast);
if(ast){
av_free(ast->index_entries);
av_free(ast);
}
av_free(st->codec.extradata);
av_free(st->codec.palctrl);
}