memory leak fix in CCTextureCache::addImageAsync.

This commit is contained in:
James Chen
2017-07-21 15:22:09 +08:00
parent 6211b28b9a
commit 73c318d105
+3
View File
@@ -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