]> git.sesse.net Git - vlc/commitdiff
Another set of useless if statements
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 1 Sep 2007 14:08:39 +0000 (14:08 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 1 Sep 2007 14:08:39 +0000 (14:08 +0000)
modules/stream_out/standard.c

index 443e8feb0ace682d4708fa41deffd3f3d293c0c4..ecf56712dce886064384a4daae0e7197558ab1b1 100644 (file)
@@ -311,8 +311,8 @@ static int Open( vlc_object_t *p_this )
     {
         msg_Err( p_stream, "no suitable sout access module for `%s/%s://%s'",
                  psz_access, psz_mux, psz_url );
-        if( psz_access ) free( psz_access );
-        if( psz_mux ) free( psz_mux );
+        free( psz_access );
+        free( psz_mux );
         return VLC_EGENERIC;
     }
     msg_Dbg( p_stream, "access opened" );
@@ -325,8 +325,8 @@ static int Open( vlc_object_t *p_this )
                  psz_access, psz_mux, psz_url );
 
         sout_AccessOutDelete( p_access );
-        if( psz_access ) free( psz_access );
-        if( psz_mux ) free( psz_mux );
+        free( psz_access );
+        free( psz_mux );
         return VLC_EGENERIC;
     }
     msg_Dbg( p_stream, "mux opened" );
@@ -387,10 +387,9 @@ nosap:
 
     p_stream->p_sys->p_mux = p_mux;
 
-    if( psz_access ) free( psz_access );
-    if( psz_mux ) free( psz_mux );
-    if( psz_url ) free( psz_url );
-
+    free( psz_access );
+    free( psz_mux );
+    free( psz_url );
 
     return VLC_SUCCESS;
 }