From e39df16d493063055780e7a7e0af1d7d0fa20206 Mon Sep 17 00:00:00 2001 From: minggo Date: Thu, 20 Jun 2013 15:03:51 +0800 Subject: [PATCH] use correct pointer to be closed --- cocos2dx/support/zip_support/ZipUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/support/zip_support/ZipUtils.cpp b/cocos2dx/support/zip_support/ZipUtils.cpp index 054ea57b11..50f50fa1ba 100644 --- a/cocos2dx/support/zip_support/ZipUtils.cpp +++ b/cocos2dx/support/zip_support/ZipUtils.cpp @@ -474,7 +474,7 @@ ZipFile::~ZipFile() } if (_dataThread && _dataThread->zipFile) { - unzClose(_dataThread); + unzClose(_dataThread->zipFile); } CC_SAFE_DELETE(_data); CC_SAFE_DELETE(_dataThread);