Commit 4533d2d6 authored by Zdenek Kabelac's avatar Zdenek Kabelac
Browse files

* fix double free

Originally committed as revision 1206 to svn://
parent 18f77016
...@@ -1326,7 +1326,7 @@ static int mov_read_close(AVFormatContext *s) ...@@ -1326,7 +1326,7 @@ static int mov_read_close(AVFormatContext *s)
for(i=0; i<mov->total_streams; i++) for(i=0; i<mov->total_streams; i++)
mov_free_stream_context(mov->streams[i]); mov_free_stream_context(mov->streams[i]);
for(i=0; i<s->nb_streams; i++) for(i=0; i<s->nb_streams; i++)
av_free(s->streams[i]); av_freep(&s->streams[i]);
return 0; return 0;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment