changeset 3478:a9e3cae54bf1 libavformat

free private streamcontext when closing demuxer, fix memory leak, patch by Art Clarke, aclarke at vlideshow dot com
author bcoudurier
date Wed, 18 Jun 2008 08:30:50 +0000
parents 8adaa9258dba
children 148bb3992e46
files mov.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mov.c	Mon Jun 16 23:11:02 2008 +0000
+++ b/mov.c	Wed Jun 18 08:30:50 2008 +0000
@@ -1899,6 +1899,7 @@
         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++){