mirror of https://github.com/axmolengine/axmol.git
fixed #1268: Testjs will crash after clicking the close button on win32.
Also, fixed a bug in CCTextureCache::~CCTextureCache().
This commit is contained in:
parent
a9e3931f47
commit
94701d9315
|
@ -216,7 +216,11 @@ CCTextureCache::~CCTextureCache()
|
|||
{
|
||||
CCLOGINFO("cocos2d: deallocing CCTextureCache.");
|
||||
need_quit = true;
|
||||
sem_post(s_pSem);
|
||||
if (s_pSem != NULL)
|
||||
{
|
||||
sem_post(s_pSem);
|
||||
}
|
||||
|
||||
CC_SAFE_RELEASE(m_pTextures);
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
f4135b2df3172fad12bfdcceef903b4acead4ca6
|
||||
2dcb2216223f82c1f3e4a505c8b446f6acb4ff03
|
Loading…
Reference in New Issue