]> git.sesse.net Git - vlc/blobdiff - src/input/input.c
Remove useless test before freeing something.
[vlc] / src / input / input.c
index 9725ed8dbbf151863ba3767a3f96e24ef0e9c242..4edba5df776476ec3b57886ff60a533c7511e184 100644 (file)
@@ -1053,8 +1053,8 @@ static int Init( input_thread_t * p_input )
                 }
                 free( subs[i] );
             }
-            if( subs ) free( subs );
-            if( psz_autopath ) free( psz_autopath );
+            free( subs );
+            free( psz_autopath );
         }
         free( psz_subtitle );
 
@@ -1292,7 +1292,7 @@ static void End( input_thread_t * p_input )
         InputSourceClean( p_input->p->slave[i] );
         free( p_input->p->slave[i] );
     }
-    if( p_input->p->slave ) free( p_input->p->slave );
+    free( p_input->p->slave );
 
     /* Unload all modules */
     if( p_input->p->p_es_out )
@@ -2698,8 +2698,7 @@ static void AppendAttachment( int *pi_attachment, input_attachment_t ***ppp_atta
                           sizeof(input_attachment_t**) * ( i_attachment + i_new ) );
     for( i = 0; i < i_new; i++ )
         attachment[i_attachment++] = pp_new[i];
-    if( pp_new )
-        free( pp_new );
+    free( pp_new );
 
     /* */
     *pi_attachment = i_attachment;