[Cpp-tests-->SpriteOffsetAnchorRotation]Fixed crash when enter `SpriteOffsetAnchorRotation` test case again after a auto-tested.

This commit is contained in:
Wenhai Lin 2015-06-26 12:02:15 +08:00
parent 1875829ab4
commit 94c0c0c3fc
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ TestCase::TestCase()
, _runTime(0.0f) , _runTime(0.0f)
{ {
Director::getInstance()->getTextureCache()->removeUnusedTextures(); Director::getInstance()->getTextureCache()->removeUnusedTextures();
SpriteFrameCache::getInstance()->removeUnusedSpriteFrames();
this->schedule([&](float dt){ this->schedule([&](float dt){
_runTime += dt; _runTime += dt;