VirtualBox

Changeset 30534 in vbox


Ignore:
Timestamp:
Jun 30, 2010 4:16:59 PM (15 years ago)
Author:
vboxsync
Message:

Main: uninit, correct COM map for veto event

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/EventImpl.cpp

    r30521 r30534  
    9999void VBoxEvent::uninit()
    100100{
     101    AutoUninitSpan autoUninitSpan(this);
     102    if (autoUninitSpan.uninitDone())
     103        return;
     104
    101105    if (!m)
    102106        return;
     
    254258void VBoxVetoEvent::uninit()
    255259{
     260    AutoUninitSpan autoUninitSpan(this);
     261    if (autoUninitSpan.uninitDone())
     262        return;
     263
    256264    VBoxEvent::uninit();
    257265    if (!m)
     
    624632void EventSource::uninit()
    625633{
     634    AutoUninitSpan autoUninitSpan(this);
     635    if (autoUninitSpan.uninitDone())
     636        return;
    626637    m->mListeners.clear();
    627638    // m->mEvMap shall be cleared at this point too by destructors, assert?
  • trunk/src/VBox/Main/include/EventImpl.h

    r30523 r30534  
    7979    DECLARE_PROTECT_FINAL_CONSTRUCT()
    8080
    81     BEGIN_COM_MAP(VBoxEvent)
     81    BEGIN_COM_MAP(VBoxVetoEvent)
    8282        COM_INTERFACE_ENTRY(ISupportErrorInfo)
    83         COM_INTERFACE_ENTRY(IEvent)
    84             //        COM_INTERFACE_ENTRY(IVetoEvent)
    85         COM_INTERFACE_ENTRY(IDispatch)
     83        COM_INTERFACE_ENTRY2(IEvent, IVetoEvent)
     84        COM_INTERFACE_ENTRY(IVetoEvent)
     85        COM_INTERFACE_ENTRY2(IDispatch, IVetoEvent)
    8686    END_COM_MAP()
    8787
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette