comparison libmpcodecs/ad_mpc.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 d332ea379205
children a93891202051
comparison
equal deleted inserted replaced
32536:187f26cba0ce 32537:8fa2f43cb760
119 sh->audio_out_minsize = MAX_FRAMESIZE; 119 sh->audio_out_minsize = MAX_FRAMESIZE;
120 return 1; 120 return 1;
121 } 121 }
122 122
123 static void uninit(sh_audio_t *sh) { 123 static void uninit(sh_audio_t *sh) {
124 if (sh->context) 124 free(sh->context);
125 free(sh->context);
126 sh->context = NULL; 125 sh->context = NULL;
127 } 126 }
128 127
129 static int init(sh_audio_t *sh) { 128 static int init(sh_audio_t *sh) {
130 mpc_streaminfo info; 129 mpc_streaminfo info;