Commit 985f7717 authored by michael's avatar michael

Call av_free_static automatically before DLL unload patch by (plaum:ipf uni-stuttgart de)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4532 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1fcfaad0
......@@ -143,6 +143,17 @@ void av_free_static(void)
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.
* @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