diff --git a/cocos2dx/platform/wophone/CCFileUtils_wophone.cpp b/cocos2dx/platform/wophone/CCFileUtils_wophone.cpp index da4caf0309..b6e3a7669a 100644 --- a/cocos2dx/platform/wophone/CCFileUtils_wophone.cpp +++ b/cocos2dx/platform/wophone/CCFileUtils_wophone.cpp @@ -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 {