diff --git a/cocos/editor-support/cocostudio/CCSSceneReader.cpp b/cocos/editor-support/cocostudio/CCSSceneReader.cpp index 264f4f4b94..0c223a6d1c 100644 --- a/cocos/editor-support/cocostudio/CCSSceneReader.cpp +++ b/cocos/editor-support/cocostudio/CCSSceneReader.cpp @@ -447,10 +447,11 @@ namespace cocostudio { void SceneReader::purgeSceneReader() { - CC_SAFE_DELETE(s_sharedReader); - DictionaryHelper::shareHelper()->purgeDictionaryHelper(); + DictionaryHelper::shareHelper()->purgeDictionaryHelper(); TriggerMng::getInstance()->destroyInstance(); _pfnSelector = NULL; + _pListener = NULL; + CC_SAFE_DELETE(s_sharedReader); } }