Browse Source

Move unaltered av_freep() comments to the header file.

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

+ 5
- 0
libavutil/common.h View File

@@ -354,6 +354,11 @@ void av_free(void *ptr);

void *av_mallocz(unsigned int size);
char *av_strdup(const char *s);

/**
* Frees memory and sets the pointer to NULL.
* @param arg pointer to the pointer which should be freed
*/
void av_freep(void *ptr);

#endif /* COMMON_H */

+ 0
- 4
libavutil/mem.c View File

@@ -122,10 +122,6 @@ void av_free(void *ptr)
#endif
}

/**
* Frees memory and sets the pointer to NULL.
* @param arg pointer to the pointer which should be freed
*/
void av_freep(void *arg)
{
void **ptr= (void**)arg;


Loading…
Cancel
Save