free private streamcontext when closing demuxer, fix memory leak, patch by Art Clarke...
authorArt Clarke <aclarke@vlideshow.com>
Wed, 18 Jun 2008 08:30:50 +0000 (08:30 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Wed, 18 Jun 2008 08:30:50 +0000 (08:30 +0000)
Originally committed as revision 13800 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mov.c

index 76c25a3e4d6de9d22f1d54d7f99f8bbabb3a0762..5f3577c4db9fe1e0ade75e39c3c549f3c05d653e 100644 (file)
@@ -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++){