From e3ec60d82a853a4de5568bfadcd72e3984095148 Mon Sep 17 00:00:00 2001 From: Art Clarke Date: Wed, 18 Jun 2008 08:30:50 +0000 Subject: [PATCH] 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 --- libavformat/mov.c | 1 + 1 file changed, 1 insertion(+) 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; idv_fctx->nb_streams; i++){