mirror of https://github.com/axmolengine/axmol.git
fix crash (#17544)
This commit is contained in:
parent
3ff521505e
commit
e8c0b04e24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue