]> git.sesse.net Git - vlc/commitdiff
normvol: do not handle impossible error
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Sep 2009 09:47:43 +0000 (12:47 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Sep 2009 10:07:57 +0000 (13:07 +0300)
Open fails if p_sys is NULL.

modules/audio_filter/normvol.c

index f10df6612ae3313b0f1eb5a6e6376a8fdf105439..f67f24c6baa610312c9e7863a9213d1b50249385 100644 (file)
@@ -253,9 +253,6 @@ static void Close( vlc_object_t *p_this )
     aout_filter_t *p_filter = (aout_filter_t*)p_this;
     aout_filter_sys_t *p_sys = p_filter->p_sys;
 
-    if( p_sys )
-    {
-        free( p_sys->p_last );
-        free( p_sys );
-    }
+    free( p_sys->p_last );
+    free( p_sys );
 }