av_freep() recommandition

Originally committed as revision 4809 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-01-04 09:42:37 +00:00
parent 87f50d2733
commit 1499e0bee9
1 changed files with 5 additions and 1 deletions

View File

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