changeset 3008:e23d2bddf122 libavcodec

av_freep() recommandition
author michael
date Wed, 04 Jan 2006 09:42:37 +0000
parents 5d9d55e2a8c6
children f5898b9b8a8a
files mem.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mem.c	Wed Jan 04 03:01:05 2006 +0000
+++ b/mem.c	Wed Jan 04 09:42:37 2006 +0000
@@ -117,7 +117,11 @@
 #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 */