提交 8e38ff0c 编写于 作者: F Fabrice Bellard

fixed double free

Originally committed as revision 2499 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 ba0ce88a
......@@ -1739,8 +1739,6 @@ static int mov_read_close(AVFormatContext *s)
MOVContext *mov = (MOVContext *) s->priv_data;
for(i=0; i<mov->total_streams; i++)
mov_free_stream_context(mov->streams[i]);
for(i=0; i<s->nb_streams; i++)
av_freep(&s->streams[i]);
/* free color tabs */
for(i=0; i<mov->ctab_size; i++)
av_freep(&mov->ctab[i]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册