VirtualBox

Changeset 30298 in vbox for trunk/src


Ignore:
Timestamp:
Jun 18, 2010 7:50:39 AM (15 years ago)
Author:
vboxsync
Message:

fixed memory leaks in Machine::GetGuestPropertyValue() and Machine::GetGuestPropertyTimestamp()

File:
1 edited

Legend:

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

    r30055 r30298  
    40664066{
    40674067    ULONG64 dummyTimestamp;
    4068     BSTR dummyFlags;
    4069     return GetGuestProperty(aName, aValue, &dummyTimestamp, &dummyFlags);
     4068    Bstr dummyFlags;
     4069    return GetGuestProperty(aName, aValue, &dummyTimestamp, dummyFlags.asOutParam());
    40704070}
    40714071
    40724072STDMETHODIMP Machine::GetGuestPropertyTimestamp(IN_BSTR aName, ULONG64 *aTimestamp)
    40734073{
    4074     BSTR dummyValue;
    4075     BSTR dummyFlags;
    4076     return GetGuestProperty(aName, &dummyValue, aTimestamp, &dummyFlags);
     4074    Bstr dummyValue;
     4075    Bstr dummyFlags;
     4076    return GetGuestProperty(aName, dummyValue.asOutParam(), aTimestamp, dummyFlags.asOutParam());
    40774077}
    40784078
     
    41924192            mData->mSession.mDirectControl;
    41934193
    4194         BSTR dummy = NULL;
     4194        BSTR dummy = NULL; /* will not be changed (setter) */
    41954195        ULONG64 dummy64;
    41964196        if (!directControl)
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