fixed #1268: Testjs will crash after clicking the close button on win32.

Also, fixed a bug in CCTextureCache::~CCTextureCache().
This commit is contained in:
James Chen 2012-05-29 15:23:16 +08:00
parent a9e3931f47
commit 94701d9315
2 changed files with 6 additions and 2 deletions

View File

@ -216,7 +216,11 @@ CCTextureCache::~CCTextureCache()
{ {
CCLOGINFO("cocos2d: deallocing CCTextureCache."); CCLOGINFO("cocos2d: deallocing CCTextureCache.");
need_quit = true; need_quit = true;
if (s_pSem != NULL)
{
sem_post(s_pSem); sem_post(s_pSem);
}
CC_SAFE_RELEASE(m_pTextures); CC_SAFE_RELEASE(m_pTextures);
} }

View File

@ -1 +1 @@
f4135b2df3172fad12bfdcceef903b4acead4ca6 2dcb2216223f82c1f3e4a505c8b446f6acb4ff03