Table of Contents
Frees a memory block which has been allocated with av_malloc or av_realloc and set the pointer pointing to it to NULL.
void av_freep(void *ptr);
Pointer to the pointer to the memory block which should be freed.
NOTE: ptr should be declared as a void**, eg. it should be used as in the following example:
void *p = av_malloc(42); av_freep(&p); // Now the memory is freed, and p has the value NULL.
Using av_freep is equivalent to using av_free and manually setting the pointer to NULL afterwards.
av_free(), av_malloc(), av_realloc()
Back to ffmpeg
ffmpeg/av_freep.txt · Last modified: 2009/07/21 12:12 by deva