Logo Search packages:      
Sourcecode: blender version File versions  Download package

void av_free ( void *  ptr  ) 

Free memory which has been allocated with av_malloc(z)() or av_realloc(). NOTE: ptr = NULL is explicetly allowed Note2: it is recommanded that you use av_freep() instead

Definition at line 125 of file mem.c.

References av_free().

Referenced by av_close_input_file(), av_destruct_packet(), av_free(), av_freep(), av_open_input_stream(), av_read_frame(), and cook_decode_close().

{
    /* XXX: this test should not be needed on most libcs */
    if (ptr)
#ifdef MEMALIGN_HACK
        free(ptr - ((char*)ptr)[-1]);
#else
        free(ptr);
#endif
}


Generated by  Doxygen 1.6.0   Back to index