fix binary test crash bug

This commit is contained in:
geron-cn 2014-07-17 16:13:12 +08:00
parent 1a2caaeebf
commit 441f0ebca8
1 changed files with 1 additions and 6 deletions

View File

@ -1546,7 +1546,7 @@ void TestLoadFromBinary::onTouchesEnded(const std::vector<Touch*>& touches, Even
// remove json created
// remove sync resource
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson");
ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[0]);
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/Cowboy.ExportJson");
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/hero.ExportJson");
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/horse.ExportJson");
@ -1557,11 +1557,6 @@ void TestLoadFromBinary::onTouchesEnded(const std::vector<Touch*>& touches, Even
ArmatureDataManager::getInstance()->removeArmatureFileInfo(m_binaryFilesNames[i]);
}
for( int i = 0; i < BINARYFILECOUNT; i++)
{
ArmatureDataManager::getInstance()->removeArmatureFileInfo("armature/testEasing.csb");
}
for( int i = 0; i < BINARYFILECOUNT; i++)
{
ArmatureDataManager::getInstance()->addArmatureFileInfoAsync(m_binaryFilesNames[i], this, schedule_selector(TestLoadFromBinary::dataLoaded));