Mercurial > mplayer.hg
comparison libmpcodecs/vf_sab.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 | effad4f941ff |
children | 7af3e6f901fd |
comparison
equal
deleted
inserted
replaced
32536:187f26cba0ce | 32537:8fa2f43cb760 |
---|---|
151 | 151 |
152 static void freeBuffers(FilterParam *f){ | 152 static void freeBuffers(FilterParam *f){ |
153 if(f->preFilterContext) sws_freeContext(f->preFilterContext); | 153 if(f->preFilterContext) sws_freeContext(f->preFilterContext); |
154 f->preFilterContext=NULL; | 154 f->preFilterContext=NULL; |
155 | 155 |
156 if(f->preFilterBuf) free(f->preFilterBuf); | 156 free(f->preFilterBuf); |
157 f->preFilterBuf=NULL; | 157 f->preFilterBuf=NULL; |
158 | 158 |
159 if(f->distCoeff) free(f->distCoeff); | 159 free(f->distCoeff); |
160 f->distCoeff=NULL; | 160 f->distCoeff=NULL; |
161 } | 161 } |
162 | 162 |
163 static void uninit(struct vf_instance *vf){ | 163 static void uninit(struct vf_instance *vf){ |
164 if(!vf->priv) return; | 164 if(!vf->priv) return; |