Originally committed as revision 2666 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 21 years ago
parent ac548c5d1d
commit 3144b152a6
  1. 6
      libavformat/avidec.c

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

Loading…
Cancel
Save