diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-01-04 09:42:37 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-01-04 09:42:37 +0000 |
commit | 1499e0bee93ae3d281eaca93b186c8a3bcec2063 (patch) | |
tree | 2dcca16e961bbb1fad7dafdab64fd5a7a60a5a7e /libavcodec | |
parent | 87f50d273354fbf5a78d13cf7ec7d6f3b1b49a00 (diff) | |
download | ffmpeg-1499e0bee93ae3d281eaca93b186c8a3bcec2063.tar.gz |
av_freep() recommandition
Originally committed as revision 4809 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/mem.c b/libavcodec/mem.c index 2f972b7c59..d24da6a15d 100644 --- a/libavcodec/mem.c +++ b/libavcodec/mem.c @@ -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 */ |