ffmpeg:av_freep
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffmpeg:av_freep [2009/07/21 11:19] – created challaganmadrid | ffmpeg:av_freep [2009/07/21 12:12] (current) – deva | ||
---|---|---|---|
Line 11: | Line 11: | ||
====Parameters==== | ====Parameters==== | ||
===ptr=== | ===ptr=== | ||
- | ptr Pointer to the pointer to the memory block which should be freed. | + | <code c>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: | ||
+ | <code c> | ||
+ | void *p = av_malloc(42); | ||
+ | av_freep(& | ||
+ | // Now the memory is freed, and p has the value NULL. | ||
+ | </ | ||
+ | Using av_freep is equivalent to using [[ffmpeg: | ||
+ | |||
+ | ====Return value==== | ||
+ | NONE | ||
+ | |||
+ | ====See also==== | ||
+ | [[ffmpeg: | ||
---- | ---- | ||
Back to [[ffmpeg: | Back to [[ffmpeg: |
ffmpeg/av_freep.1248167969.txt.gz · Last modified: 2009/07/21 11:19 by challaganmadrid