Mercurial > libavutil.hg
changeset 280:8c22d0665daa libavutil
Move unaltered av_free() comments to the header file.
author | takis |
---|---|
date | Mon, 05 Mar 2007 13:50:03 +0000 |
parents | 4964532166e6 |
children | 411c8cbd578a |
files | common.h mem.c |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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 */