[FFmpeg-cvslog] r18484 - trunk/ffmpeg.c

bcoudurier subversion
Mon Apr 13 05:43:29 CEST 2009


Author: bcoudurier
Date: Mon Apr 13 05:43:29 2009
New Revision: 18484

Log:
free options contexts in av_exit, valgrind should be happy now

Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	Mon Apr 13 05:38:55 2009	(r18483)
+++ trunk/ffmpeg.c	Mon Apr 13 05:43:29 2009	(r18484)
@@ -434,6 +434,11 @@ static int av_exit(int ret)
         exit (255);
     }
 
+    for (i=0;i<CODEC_TYPE_NB;i++)
+        av_free(avcodec_opts[i]);
+    av_free(avformat_opts);
+    av_free(sws_opts);
+
     exit(ret); /* not all OS-es handle main() return value */
     return ret;
 }



More information about the ffmpeg-cvslog mailing list