Mercurial > libavutil.hg
diff common.h @ 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 |
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);
