mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
memory leak fix in CCTextureCache::addImageAsync.
This commit is contained in:
@@ -572,6 +572,9 @@ void TextureCache::waitForQuit()
|
||||
_needQuit = true;
|
||||
_sleepCondition.notify_one();
|
||||
if (_loadingThread) _loadingThread->join();
|
||||
|
||||
// Clear async tasks which are still in the queue.
|
||||
addImageAsyncCallBack(0.0f);
|
||||
}
|
||||
|
||||
std::string TextureCache::getCachedTextureInfo() const
|
||||
|
||||
Reference in New Issue
Block a user