[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec utils.c,1.147,1.148

Michael Niedermayer CVS michael
Sun Aug 21 21:50:25 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv9964

Modified Files:
	utils.c 
Log Message:
Call av_free_static automatically before DLL unload patch by (plaum:ipf uni-stuttgart de)


Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/utils.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- utils.c	1 Aug 2005 20:07:03 -0000	1.147
+++ utils.c	21 Aug 2005 19:50:22 -0000	1.148
@@ -144,6 +144,17 @@
 }
 
 /**
+ * Call av_free_static automatically before it's too late
+ */
+
+static void do_free() __attribute__ ((destructor));
+
+static void do_free()
+{
+    av_free_static();
+}
+
+/**
  * Frees memory and sets the pointer to NULL.
  * @param arg pointer to the pointer which should be freed
  */





More information about the ffmpeg-cvslog mailing list