CCScriptEventDispatcher::~CCScriptEventDispatcher() { if (m_scriptEventListeners) { removeAllScriptEventListeners(); m_scriptEventListeners->release(); } }
CCScriptEventDispatcher::~CCScriptEventDispatcher() { if (m_scriptEventListeners) { removeAllScriptEventListeners(); m_scriptEventListeners->clear(); delete m_scriptEventListeners; } }