mirror of https://github.com/axmolengine/axmol.git
fix: cleanup scheduler after call CCDirector::end()
This commit is contained in:
parent
03374fa83b
commit
39f672e5bf
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue