]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Move unaltered av_free() comments to the header file.
authortakis <takis@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 5 Mar 2007 13:50:03 +0000 (13:50 +0000)
committertakis <takis@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 5 Mar 2007 13:50:03 +0000 (13:50 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8252 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavutil/common.h
libavutil/mem.c

index 89f8a01f520e842284bc5cb2f1c9f34deb4796d8..ab69eafda2d13a209a49ece40d09341cb17ff333 100644 (file)
@@ -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);
index c95892b361749eb8748d0c68883875be8bc7721d..6a13d0e0c0d68526871c4dee13581f4d2cb21b5e 100644 (file)
@@ -111,11 +111,6 @@ void *av_realloc(void *ptr, unsigned int size)
 #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 */