1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-05 18:01:59 +02:00

fixed double free

Originally committed as revision 2499 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2003-11-10 18:43:12 +00:00
parent ba0ce88a2d
commit 8e38ff0c07

View File

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