diff --git a/tests/Classes/SchedulerTest/SchedulerTest.cpp b/tests/Classes/SchedulerTest/SchedulerTest.cpp index 37597f6cb6..071c248838 100644 --- a/tests/Classes/SchedulerTest/SchedulerTest.cpp +++ b/tests/Classes/SchedulerTest/SchedulerTest.cpp @@ -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; }