[SCM] libav/experimental: Call av_free_static automatically before DLL unload patch by (plaum:ipf uni-stuttgart de)
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:44:56 UTC 2013
The following commit has been merged in the experimental branch:
commit 32fbf33e61ed13c728e4efcbd8729171391c472f
Author: Burkhard Plaum <plaum at ipf.uni-stuttgart.de>
Date: Sun Aug 21 19:50:22 2005 +0000
Call av_free_static automatically before DLL unload patch by (plaum:ipf uni-stuttgart de)
Originally committed as revision 4532 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 1b2cd21..f2a8ae0 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -144,6 +144,17 @@ void av_free_static(void)
}
/**
+ * 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
*/
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list