Browse Source

Move unaltered av_free() comments to the header file.

Originally committed as revision 8252 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Panagiotis Issaris 18 years ago
parent
commit
f690ee715d
2 changed files with 6 additions and 5 deletions
  1. +6
    -0
      libavutil/common.h
  2. +0
    -5
      libavutil/mem.c

+ 6
- 0
libavutil/common.h View File

@@ -344,6 +344,12 @@ void *av_malloc(unsigned int size);
* free(ptr) and NULL is returned. * free(ptr) and NULL is returned.
*/ */
void *av_realloc(void *ptr, unsigned int size); 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_free(void *ptr);


void *av_mallocz(unsigned int size); void *av_mallocz(unsigned int size);


+ 0
- 5
libavutil/mem.c View File

@@ -111,11 +111,6 @@ void *av_realloc(void *ptr, unsigned int size)
#endif #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) void av_free(void *ptr)
{ {
/* XXX: this test should not be needed on most libcs */ /* XXX: this test should not be needed on most libcs */


Loading…
Cancel
Save