From: RĂ©mi Duraffort Date: Thu, 13 Mar 2008 23:26:42 +0000 (+0100) Subject: Forgiven in the previous commit (useless test) X-Git-Tag: 0.9.0-test0~2101 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0b87d485d9d37eaa921ea4f53b39f29fce8cd50e;hp=6411526fe052a033300e73045b07c0aaee089e88;p=vlc Forgiven in the previous commit (useless test) --- diff --git a/libs/loader/afl.c b/libs/loader/afl.c index 421414874a..8800df16db 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 cd28c5c013..d0a5aacb78 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 {