comparison libaf/af_dummy.c @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents 0f1b5b68af32
children a93891202051
comparison
equal deleted inserted replaced
32536:187f26cba0ce 32537:8fa2f43cb760
39 } 39 }
40 40
41 // Deallocate memory 41 // Deallocate memory
42 static void uninit(struct af_instance_s* af) 42 static void uninit(struct af_instance_s* af)
43 { 43 {
44 if(af->data)
45 free(af->data); 44 free(af->data);
46 } 45 }
47 46
48 // Filter data through filter 47 // Filter data through filter
49 static af_data_t* play(struct af_instance_s* af, af_data_t* data) 48 static af_data_t* play(struct af_instance_s* af, af_data_t* data)