VirtualBox

Ignore:
Timestamp:
Jan 27, 2011 9:52:23 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69674
Message:

frontends: more listener release fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r35722 r35727  
    10411041            ComPtr<IEventSource> es;
    10421042            CHECK_ERROR(console, COMGETTER(EventSource)(es.asOutParam()));
    1043             consoleListener.createObject(); 
     1043            consoleListener.createObject();
    10441044            consoleListener->init(new ConsoleEventListener());
    10451045            com::SafeArray<VBoxEventType_T> eventTypes;
     
    12791279        if (!es.isNull())
    12801280            CHECK_ERROR(es, UnregisterListener(vboxListener));
    1281         vboxListener->Release();
     1281        vboxListener.setNull();
    12821282    }
    12831283
     
    12891289        if (!es.isNull())
    12901290            CHECK_ERROR(es, UnregisterListener(consoleListener));
    1291         consoleListener->Release();
     1291        consoleListener.setNull();
    12921292    }
    12931293
     
    12991299        if (!pES.isNull())
    13001300            CHECK_ERROR(pES, UnregisterListener(vboxClientListener));
    1301         vboxClientListener->Release();
     1301        vboxClientListener.setNull();
    13021302    }
    13031303
Note: See TracChangeset for help on using the changeset viewer.

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