User Tools

Site Tools


ffmpeg:av_freep

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ffmpeg:av_freep [2009/07/21 12:10] devaffmpeg:av_freep [2009/07/21 12:12] (current) deva
Line 12: Line 12:
 ===ptr=== ===ptr===
 <code c>void *ptr</code> <code c>void *ptr</code>
-Pointer to the pointer to the memory block which should be freed. +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:+NOTE: ptr should be declared as a void**, eg. it should be used as in the following example:
 <code c> <code c>
 void *p = av_malloc(42); void *p = av_malloc(42);
Line 19: Line 19:
 // Now the memory is freed, and p has the value NULL. // Now the memory is freed, and p has the value NULL.
 </code> </code>
 +Using av_freep is equivalent to using [[ffmpeg:av_free]] and manually setting the pointer to NULL afterwards.
  
 ====Return value==== ====Return value====
ffmpeg/av_freep.1248171049.txt.gz · Last modified: 2009/07/21 12:10 by deva