diff --git a/cocos2dx/textures/CCTextureCache.cpp b/cocos2dx/textures/CCTextureCache.cpp index 5480fb716f..786b6f7c24 100644 --- a/cocos2dx/textures/CCTextureCache.cpp +++ b/cocos2dx/textures/CCTextureCache.cpp @@ -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); } diff --git a/js/JSBindings/cocos2d_generated.cpp.REMOVED.git-id b/js/JSBindings/cocos2d_generated.cpp.REMOVED.git-id index b3c5cf7698..102c2b22e2 100644 --- a/js/JSBindings/cocos2d_generated.cpp.REMOVED.git-id +++ b/js/JSBindings/cocos2d_generated.cpp.REMOVED.git-id @@ -1 +1 @@ -f4135b2df3172fad12bfdcceef903b4acead4ca6 \ No newline at end of file +2dcb2216223f82c1f3e4a505c8b446f6acb4ff03 \ No newline at end of file