Commit aced6098 authored by takis's avatar takis

Move unaltered av_free() comments to the header file.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8252 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 15d0e89b
...@@ -344,6 +344,12 @@ void *av_malloc(unsigned int size); ...@@ -344,6 +344,12 @@ void *av_malloc(unsigned int size);
* free(ptr) and NULL is returned. * free(ptr) and NULL is returned.
*/ */
void *av_realloc(void *ptr, unsigned int size); void *av_realloc(void *ptr, unsigned int size);
/**
* Free memory which has been allocated with av_malloc(z)() or av_realloc().
* NOTE: ptr = NULL is explicetly allowed
* Note2: it is recommended that you use av_freep() instead
*/
void av_free(void *ptr); void av_free(void *ptr);
void *av_mallocz(unsigned int size); void *av_mallocz(unsigned int size);
......
...@@ -111,11 +111,6 @@ void *av_realloc(void *ptr, unsigned int size) ...@@ -111,11 +111,6 @@ void *av_realloc(void *ptr, unsigned int size)
#endif #endif
} }
/**
* Free memory which has been allocated with av_malloc(z)() or av_realloc().
* NOTE: ptr = NULL is explicetly allowed
* Note2: it is recommended that you use av_freep() instead
*/
void av_free(void *ptr) void av_free(void *ptr)
{ {
/* XXX: this test should not be needed on most libcs */ /* 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