VirtualBox

Changeset 77624 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Mar 8, 2019 5:33:50 PM (6 years ago)
Author:
vboxsync
Message:

Main/ExtPackManager: fix leak of CloudProviderManager instance from an extpack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r76553 r77624  
    20902090    CheckComArgGuid(aObjUuid, ObjectId);
    20912091
    2092     HRESULT hrc S_OK;
     2092    HRESULT hrc = S_OK;
    20932093
    20942094    if (   m->pReg
     
    20972097        void *pvUnknown = m->pReg->pfnQueryObject(m->pReg, ObjectId.raw());
    20982098        if (pvUnknown)
    2099              aReturnInterface = (IUnknown *)pvUnknown;
     2099        {
     2100            aReturnInterface = (IUnknown *)pvUnknown;
     2101            /* The above assignment increased the refcount. Since pvUnknown
     2102             * is a dumb pointer we have to do the release ourselves. */
     2103            ((IUnknown *)pvUnknown)->Release();
     2104        }
    21002105        else
    21012106            hrc = E_NOINTERFACE;
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