# HG changeset patch # User takis # Date 1173102603 0 # Node ID 8c22d0665daa85c4b1cd193b0a853d17390218eb # Parent 4964532166e668898f99be41ae7467d4897628fa Move unaltered av_free() comments to the header file. diff -r 4964532166e6 -r 8c22d0665daa common.h --- a/common.h Mon Mar 05 13:46:47 2007 +0000 +++ b/common.h Mon Mar 05 13:50:03 2007 +0000 @@ -344,6 +344,12 @@ * 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); diff -r 4964532166e6 -r 8c22d0665daa mem.c --- a/mem.c Mon Mar 05 13:46:47 2007 +0000 +++ b/mem.c Mon Mar 05 13:50:03 2007 +0000 @@ -111,11 +111,6 @@ #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 */