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

void av_freep ( void *  arg  ) 

Frees memory and sets the pointer to NULL.

Parameters:
arg pointer to the pointer which should be freed

Definition at line 167 of file utils.c.

References av_free(), and av_freep().

Referenced by av_close_input_file(), av_free_static(), av_freep(), av_interleave_packet_per_dts(), av_open_input_file(), av_open_input_stream(), av_write_trailer(), avcodec_open(), avcodec_thread_free(), ff_fft_init(), ff_mdct_init(), free_bitplane(), free_picture(), and vc9_decode_end().

{
    void **ptr= (void**)arg;
    av_free(*ptr);
    *ptr = NULL;
}


Generated by  Doxygen 1.6.0   Back to index