mirror of https://github.com/axmolengine/axmol.git
Fixes 'schedule test/issue#2268' crashes
This commit is contained in:
parent
62a121a54f
commit
d7774c29ca
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue