fixed #539 call unzOpen, then may not call unzClose(WVGA)

This commit is contained in:
liswei 2011-06-23 18:24:32 +08:00
parent a676e0d401
commit 4793713daa
1 changed files with 6 additions and 1 deletions

View File

@ -55,8 +55,13 @@ bool isResourceExist(const char* pszResName)
CC_BREAK_IF(nPos != UNZ_OK);
bRet = true;
unzClose(pZipFile);
} while (0);
if (pZipFile)
{
unzClose(pZipFile);
}
}
else
{