[Ffmpeg-cvslog] r8252 - in trunk/libavutil: common.h mem.c

takis subversion
Mon Mar 5 14:50:03 CET 2007


Author: takis
Date: Mon Mar  5 14:50:03 2007
New Revision: 8252

Modified:
   trunk/libavutil/common.h
   trunk/libavutil/mem.c

Log:
Move unaltered av_free() comments to the header file.


Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h	(original)
+++ trunk/libavutil/common.h	Mon Mar  5 14:50:03 2007
@@ -344,6 +344,12 @@ void *av_malloc(unsigned int size);
  * free(ptr) and NULL is returned.
  */
 void *av_realloc(void *ptr, unsigned int size);
+
+/**
+ * Free memory which has been allocated with av_malloc(z)() or av_realloc().
+ * NOTE: ptr = NULL is explicetly allowed
+ * Note2: it is recommended that you use av_freep() instead
+ */
 void av_free(void *ptr);
 
 void *av_mallocz(unsigned int size);

Modified: trunk/libavutil/mem.c
==============================================================================
--- trunk/libavutil/mem.c	(original)
+++ trunk/libavutil/mem.c	Mon Mar  5 14:50:03 2007
@@ -111,11 +111,6 @@ void *av_realloc(void *ptr, unsigned int
 #endif
 }
 
-/**
- * Free memory which has been allocated with av_malloc(z)() or av_realloc().
- * NOTE: ptr = NULL is explicetly allowed
- * Note2: it is recommended that you use av_freep() instead
- */
 void av_free(void *ptr)
 {
     /* XXX: this test should not be needed on most libcs */




More information about the ffmpeg-cvslog mailing list