Mercurial > mplayer.hg
diff loader/afl.c @ 32537:8fa2f43cb760
Remove most of the NULL pointer check before free all over the code
author | cboesch |
---|---|
date | Sun, 14 Nov 2010 09:12:34 +0000 |
parents | 601319a3523e |
children |
line wrap: on
line diff
--- a/loader/afl.c Sat Nov 13 10:23:34 2010 +0000 +++ b/loader/afl.c Sun Nov 14 09:12:34 2010 +0000 @@ -310,8 +310,7 @@ 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;