diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index 9eb2ac492a..a8c3144428 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -591,6 +591,9 @@ void CCDirector::end() void CCDirector::purgeDirector() { + // cleanup scheduler + getScheduler()->unscheduleAllSelectors(); + // don't release the event handlers // They are needed in case the director is run again m_pTouchDispatcher->removeAllDelegates();