summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-11-10 18:43:12 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-11-10 18:43:12 +0000
commit8e38ff0c07752ad6343b2c64197f7cc990f1869b (patch)
tree9b0719a183f7ca34aa556d4aa5ea42d79ebd9fab /libavformat/mov.c
parentba0ce88a2d0df0b2049ea25da12bb68e97061c7c (diff)
fixed double free
Originally committed as revision 2499 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ee722bae00..b684e68c52 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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]);