1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Burkhard Plaum 2005-08-21 19:50:22 +00:00 committed by Michael Niedermayer
parent 1cd89f276a
commit 32fbf33e61

View File

@ -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