This commit is contained in:
minggo 2017-03-17 16:15:21 +08:00 committed by GitHub
parent 3ff521505e
commit e8c0b04e24
1 changed files with 4 additions and 4 deletions

View File

@ -2406,8 +2406,6 @@ void SequenceWithFinalInstant::onEnter()
ActionsDemo::onEnter();
_manager = new cocos2d::ActionManager();
_manager->autorelease();
_manager->retain();
_target = cocos2d::Node::create();
_target->setActionManager( _manager );
@ -2443,8 +2441,10 @@ void SequenceWithFinalInstant::onEnter()
void SequenceWithFinalInstant::onExit()
{
_target->release();
_manager->release();
ActionsDemo::onExit();
_target->onExit();
_target->release();
_manager->release();
}
std::string SequenceWithFinalInstant::subtitle() const