Ejemplo n.º 1
0
CEventManager::~CEventManager(void)
{
    // wtf? we have listeners left...
    ATLASSERT(m_ListenerList.GetSize() == 0);
    // Delete remaining events
    DeleteEvents(NULL);
}
Ejemplo n.º 2
0
void CEventManager::RemoveListener(CListener *pListener)
{
    // remove the listener
    m_ListenerList.Remove(pListener);

    // remove all outstanding events from this source.
    DeleteEvents(pListener);
}
Ejemplo n.º 3
0
void CElement::CleanUpForVM ( CLuaMain* pLuaMain, bool bRecursive )
{
    // Delete all our events and custom datas attached to that VM
    DeleteEvents ( pLuaMain, false );
    //DeleteCustomData ( pLuaMain, false ); * Removed to keep custom data global

    // If recursive, do it on our children too
    if ( bRecursive )
    {
        CChildListType ::const_iterator iter = m_Children.begin ();
        for ( ; iter != m_Children.end (); iter++ )
        {
            (*iter)->CleanUpForVM ( pLuaMain, true );
        }
    }
}