issue #2790: Stops all actions when reset _rootNode.

This commit is contained in:
James Chen 2013-12-10 13:41:51 +08:00
parent 64fd2386a9
commit 479477be52
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ CCBAnimationManager::~CCBAnimationManager()
// Node *node = (Node*)pElement->getIntKey();
// node->release();
// }
if (_rootNode)
{
_rootNode->stopAllActions();
}
setRootNode(NULL);
setDelegate(NULL);