Mercurial > mplayer.hg
diff libmpcodecs/vf_unsharp.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 | 00825525514e |
children | 7af3e6f901fd |
line wrap: on
line diff
--- a/libmpcodecs/vf_unsharp.c Sat Nov 13 10:23:34 2010 +0000 +++ b/libmpcodecs/vf_unsharp.c Sun Nov 14 09:12:34 2010 +0000 @@ -212,12 +212,12 @@ fp = &vf->priv->lumaParam; for( z=0; z<sizeof(fp->SC)/sizeof(fp->SC[0]); z++ ) { - if( fp->SC[z] ) av_free( fp->SC[z] ); + av_free( fp->SC[z] ); fp->SC[z] = NULL; } fp = &vf->priv->chromaParam; for( z=0; z<sizeof(fp->SC)/sizeof(fp->SC[0]); z++ ) { - if( fp->SC[z] ) av_free( fp->SC[z] ); + av_free( fp->SC[z] ); fp->SC[z] = NULL; }