diff options
author | Art Clarke <aclarke@vlideshow.com> | 2008-06-18 08:30:50 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-18 08:30:50 +0000 |
commit | e3ec60d82a853a4de5568bfadcd72e3984095148 (patch) | |
tree | 3c668f6b2e760bc4e3f182fac2aadd5800994893 /libavformat | |
parent | 28215b3700723da0c0beb93945702b6fb2b3596d (diff) | |
download | ffmpeg-e3ec60d82a853a4de5568bfadcd72e3984095148.tar.gz |
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')
-rw-r--r-- | libavformat/mov.c | 1 |
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++){ |