Fixes 'schedule test/issue#2268' crashes

This commit is contained in:
James Chen 2014-03-06 17:41:58 +08:00
parent 62a121a54f
commit d7774c29ca
1 changed files with 1 additions and 1 deletions

View File

@ -1083,8 +1083,8 @@ void SchedulerIssue2268::update(float dt)
testNode->removeFromParentAndCleanup(false);
// at some other point we are completely done with the node and want to clear it
testNode->release();
testNode->unscheduleAllSelectors();
testNode->release();
testNode = NULL;
}