[vlc-commits] acoustid: remove superfluous checks

Rémi Denis-Courmont git at videolan.org
Wed Oct 21 18:16:23 CEST 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul  7 19:05:16 2015 +0300| [048ce633eb6ecbb2a6b5c169954ea52da93f2b9e] | committer: Jean-Baptiste Kempf

acoustid: remove superfluous checks

(cherry picked from commit 8938474d84d6ec6141523326b6d85c9ae8ec7bcf)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=048ce633eb6ecbb2a6b5c169954ea52da93f2b9e
---

 modules/misc/webservices/acoustid.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/misc/webservices/acoustid.c b/modules/misc/webservices/acoustid.c
index f23be5a..47c1db2 100644
--- a/modules/misc/webservices/acoustid.c
+++ b/modules/misc/webservices/acoustid.c
@@ -158,10 +158,8 @@ static void cancelDoAcoustIdWebRequest( void *p_arg )
     struct webrequest_t *p_request = (struct webrequest_t *) p_arg;
     if ( p_request->p_stream )
         stream_Delete( p_request->p_stream );
-    if ( p_request->psz_url )
-        free( p_request->psz_url );
-    if ( p_request->p_buffer )
-        free( p_request->p_buffer );
+    free( p_request->psz_url );
+    free( p_request->p_buffer );
 }
 
 int DoAcoustIdWebRequest( vlc_object_t *p_obj, acoustid_fingerprint_t *p_data )



More information about the vlc-commits mailing list