Commit 32fbf33e authored by Burkhard Plaum's avatar Burkhard Plaum Committed by Michael Niedermayer

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
parent 1cd89f27
...@@ -143,6 +143,17 @@ void av_free_static(void) ...@@ -143,6 +143,17 @@ void av_free_static(void)
av_freep(&array_static); av_freep(&array_static);
} }
/**
* 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. * Frees memory and sets the pointer to NULL.
* @param arg pointer to the pointer which should be freed * @param arg pointer to the pointer which should be freed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment