]> git.sesse.net Git - vlc/blobdiff - modules/visualization/visual/effects.c
Another bunch of useless test.
[vlc] / modules / visualization / visual / effects.c
index 058d32ce1a68ae4eecafc9f5f7408e90b3e89a36..5585d7d0c554e35df90c55b37781cc2ff0063a5d 100644 (file)
@@ -310,15 +310,11 @@ int spectrum_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
 
     fft_close( p_state );
 
-    if( p_s16_buff != NULL )
-    {
-        free( p_s16_buff );
-        p_s16_buff = NULL;
-    }
-
-    if(height) free(height);
+    free( p_s16_buff );
+    p_s16_buff = NULL;
 
-    if(psz_parse) free(psz_parse);
+    free( height );
+    free( psz_parse );
 
     return 0;
 }
@@ -768,15 +764,11 @@ int spectrometer_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
 
     fft_close( p_state );
 
-    if( p_s16_buff != NULL )
-    {
-        free( p_s16_buff );
-        p_s16_buff = NULL;
-    }
-
-    if(height) free(height);
+    free( p_s16_buff );
+    p_s16_buff = NULL;
 
-    if(psz_parse) free(psz_parse);
+    free( height );
+    free( psz_parse );
 
     return 0;
 }