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 "sprite_nodes/CCAnimationCache.h"
#include "event_dispatcher/CCTouch.h"
#include "event_dispatcher/CCEventDispatcher.h"
#include "support/user_default/CCUserDefault.h"
#include "shaders/ccGLStateCache.h"
#include "shaders/CCShaderCache.h"
@ -696,7 +697,8 @@ void Director::purgeDirector()
// cocos2d-x specific data structures
UserDefault::destroyInstance();
NotificationCenter::destroyInstance();
EventDispatcher::destroyInstance();
GL::invalidateStateCache();
CHECK_GL_ERROR_DEBUG();