[vlc-devel] commit: Forgiven in the previous commit (useless test) ( Rémi Duraffort )

git version control git at videolan.org
Fri Mar 14 00:28:19 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Mar 14 00:26:42 2008 +0100| [0b87d485d9d37eaa921ea4f53b39f29fce8cd50e]

Forgiven in the previous commit (useless test)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b87d485d9d37eaa921ea4f53b39f29fce8cd50e
---

 libs/loader/afl.c             |    3 +--
 modules/demux/playlist/xspf.h |    4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/libs/loader/afl.c b/libs/loader/afl.c
index 4214148..8800df1 100644
--- a/libs/loader/afl.c
+++ b/libs/loader/afl.c
@@ -338,8 +338,7 @@ PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p)
     while (p->pACMDriverList)
 	acmDriverClose((HACMDRIVER) p->pACMDriverList, 0);
     
-    if (p->pszFileName)
-	free(p->pszFileName);
+    free( p->pszFileName );
     
     if (p == MSACM_pFirstACMDriverID)
 	MSACM_pFirstACMDriverID = p->pNextACMDriverID;
diff --git a/modules/demux/playlist/xspf.h b/modules/demux/playlist/xspf.h
index cd28c5c..d0a5aac 100644
--- a/modules/demux/playlist/xspf.h
+++ b/modules/demux/playlist/xspf.h
@@ -21,8 +21,8 @@
  */
 
 /* defines */
-#define FREE_NAME()  if (psz_name) {free(psz_name);psz_name=NULL;}
-#define FREE_VALUE() if (psz_value) {free(psz_value);psz_value=NULL;}
+#define FREE_NAME()  free(psz_name);psz_name=NULL;
+#define FREE_VALUE() free(psz_value);psz_value=NULL;
 #define FREE_ATT()   FREE_NAME();FREE_VALUE()
 
 enum {




More information about the vlc-devel mailing list