summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorArt Clarke <aclarke@vlideshow.com>2008-06-18 08:30:50 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-18 08:30:50 +0000
commite3ec60d82a853a4de5568bfadcd72e3984095148 (patch)
tree3c668f6b2e760bc4e3f182fac2aadd5800994893 /libavformat/mov.c
parent28215b3700723da0c0beb93945702b6fb2b3596d (diff)
free private streamcontext when closing demuxer, fix memory leak, patch by Art Clarke, aclarke at vlideshow dot com
Originally committed as revision 13800 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 76c25a3e4d..5f3577c4db 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1899,6 +1899,7 @@ static int mov_read_close(AVFormatContext *s)
av_freep(&sc->drefs);
if (sc->pb && sc->pb != s->pb)
url_fclose(sc->pb);
+ av_freep(&sc);
}
if(mov->dv_demux){
for(i=0; i<mov->dv_fctx->nb_streams; i++){