[FFmpeg-soc] [soc]: r2989 - mxf/mxfenc.c

spyfeng subversion at mplayerhq.hu
Sat Aug 2 11:10:03 CEST 2008


Author: spyfeng
Date: Sat Aug  2 11:10:03 2008
New Revision: 2989

Log:
settle mem leaks.
tested by valgrind.


Modified:
   mxf/mxfenc.c

Modified: mxf/mxfenc.c
==============================================================================
--- mxf/mxfenc.c	(original)
+++ mxf/mxfenc.c	Sat Aug  2 11:10:03 2008
@@ -346,12 +346,14 @@ static void mxf_free(AVFormatContext *s)
     int i;
 
     av_freep(&mxf->reference.identification);
-    av_freep(&mxf->reference.content_storage);
+    av_freep(mxf->reference.package);
     av_freep(&mxf->reference.package);
+    av_freep(&mxf->reference.content_storage);
     for (i = 0; i < s->nb_streams; i++) {
         st = s->streams[i];
         av_freep(&st->priv_data);
     }
+    av_freep(mxf->reference.sub_desc);
     av_freep(&mxf->reference.sub_desc);
     av_freep(&mxf->reference.mul_desc);
     av_freep(&mxf->essence_container_uls);
@@ -916,6 +918,7 @@ fail:
         av_freep(&sc->structural_component_refs);
         av_freep(&sc->sequence_refs);
     }
+    av_freep(refs->track);
     av_freep(&refs->track);
     return ret;
 }



More information about the FFmpeg-soc mailing list