issue #2087: Invokes EventDispatcher::destroyInstance() when purging Director.

This commit is contained in:
James Chen 2013-09-18 13:00:43 +08:00
parent 80d1c315b3
commit 3a5a1e6604
1 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ THE SOFTWARE.
#include "actions/CCActionManager.h" #include "actions/CCActionManager.h"
#include "sprite_nodes/CCAnimationCache.h" #include "sprite_nodes/CCAnimationCache.h"
#include "event_dispatcher/CCTouch.h" #include "event_dispatcher/CCTouch.h"
#include "event_dispatcher/CCEventDispatcher.h"
#include "support/user_default/CCUserDefault.h" #include "support/user_default/CCUserDefault.h"
#include "shaders/ccGLStateCache.h" #include "shaders/ccGLStateCache.h"
#include "shaders/CCShaderCache.h" #include "shaders/CCShaderCache.h"
@ -696,6 +697,7 @@ void Director::purgeDirector()
// cocos2d-x specific data structures // cocos2d-x specific data structures
UserDefault::destroyInstance(); UserDefault::destroyInstance();
NotificationCenter::destroyInstance(); NotificationCenter::destroyInstance();
EventDispatcher::destroyInstance();
GL::invalidateStateCache(); GL::invalidateStateCache();