Commit 0b87d485 authored by Rémi Duraffort's avatar Rémi Duraffort

Forgiven in the previous commit (useless test)

parent 6411526f
...@@ -338,8 +338,7 @@ PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p) ...@@ -338,8 +338,7 @@ PWINE_ACMDRIVERID MSACM_UnregisterDriver(PWINE_ACMDRIVERID p)
while (p->pACMDriverList) while (p->pACMDriverList)
acmDriverClose((HACMDRIVER) p->pACMDriverList, 0); acmDriverClose((HACMDRIVER) p->pACMDriverList, 0);
if (p->pszFileName) free( p->pszFileName );
free(p->pszFileName);
if (p == MSACM_pFirstACMDriverID) if (p == MSACM_pFirstACMDriverID)
MSACM_pFirstACMDriverID = p->pNextACMDriverID; MSACM_pFirstACMDriverID = p->pNextACMDriverID;
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
*/ */
/* defines */ /* defines */
#define FREE_NAME() if (psz_name) {free(psz_name);psz_name=NULL;} #define FREE_NAME() free(psz_name);psz_name=NULL;
#define FREE_VALUE() if (psz_value) {free(psz_value);psz_value=NULL;} #define FREE_VALUE() free(psz_value);psz_value=NULL;
#define FREE_ATT() FREE_NAME();FREE_VALUE() #define FREE_ATT() FREE_NAME();FREE_VALUE()
enum { enum {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment