]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/duplicate.c
Remove useless test before free and delete.
[vlc] / modules / stream_out / duplicate.c
index 3ac8335c67e56ebcce96f3d90c73e6d043b159f4..d923f9efa3a1221e68661bf0ef23897820864853 100644 (file)
@@ -150,19 +150,10 @@ static void Close( vlc_object_t * p_this )
     for( i = 0; i < p_sys->i_nb_streams; i++ )
     {
         sout_StreamDelete( p_sys->pp_streams[i] );
-        if( p_sys->ppsz_select[i] )
-        {
-            free( p_sys->ppsz_select[i] );
-        }
-    }
-    if( p_sys->pp_streams )
-    {
-        free( p_sys->pp_streams );
-    }
-    if( p_sys->ppsz_select )
-    {
-        free( p_sys->ppsz_select );
+        free( p_sys->ppsz_select[i] );
     }
+    free( p_sys->pp_streams );
+    free( p_sys->ppsz_select );
 
     free( p_sys );
 }