Commit 1499e0be authored by Michael Niedermayer's avatar Michael Niedermayer

av_freep() recommandition

Originally committed as revision 4809 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 87f50d27
......@@ -117,7 +117,11 @@ void *av_realloc(void *ptr, unsigned int size)
#endif
}
/* NOTE: ptr = NULL is explicetly allowed */
/**
* Free memory which has been allocated with av_malloc(z)() or av_realloc().
* NOTE: ptr = NULL is explicetly allowed
* Note2: it is recommanded that you use av_freep() instead
*/
void av_free(void *ptr)
{
/* XXX: this test should not be needed on most libcs */
......
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