projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87f50d2
)
av_freep() recommandition
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 4 Jan 2006 09:42:37 +0000
(09:42 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 4 Jan 2006 09:42:37 +0000
(09:42 +0000)
Originally committed as revision 4809 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mem.c
patch
|
blob
|
history
diff --git
a/libavcodec/mem.c
b/libavcodec/mem.c
index
2f972b7
..
d24da6a
100644
(file)
--- 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 */