Пример #1
0
CCScriptEventDispatcher::~CCScriptEventDispatcher()
{
    if (m_scriptEventListeners)
    {
        removeAllScriptEventListeners();
        m_scriptEventListeners->release();
    }
}
CCScriptEventDispatcher::~CCScriptEventDispatcher()
{
    if (m_scriptEventListeners)
    {
        removeAllScriptEventListeners();
        m_scriptEventListeners->clear();
        delete m_scriptEventListeners;
    }
}