closed #2418: Unused spriteframes also need to be removed when purgeCachedData.

This commit is contained in:
James Chen 2013-07-22 18:13:13 +08:00
parent c85e8412e5
commit 2aa1fae266
1 changed files with 1 additions and 0 deletions

View File

@ -452,6 +452,7 @@ void Director::purgeCachedData(void)
LabelBMFont::purgeCachedData();
if (s_SharedDirector->getOpenGLView())
{
SpriteFrameCache::getInstance()->removeUnusedSpriteFrames();
TextureCache::getInstance()->removeUnusedTextures();
}
FileUtils::getInstance()->purgeCachedEntries();