From 38ce0668f1010ae65fbc6ef0048b0d1133600997 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 1 Sep 2007 14:08:39 +0000 Subject: [PATCH] Another set of useless if statements --- modules/stream_out/standard.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c index 443e8feb0a..ecf56712dc 100644 --- a/modules/stream_out/standard.c +++ b/modules/stream_out/standard.c @@ -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; } -- 2.39.5