VirtualBox

Changeset 28304 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 14, 2010 2:11:16 PM (15 years ago)
Author:
vboxsync
Message:

Main: free some bytes in destructors

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

Legend:

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

    r28214 r28304  
    124124        RTSemEventMultiDestroy(mMachineStateDepsSem);
    125125        mMachineStateDepsSem = NIL_RTSEMEVENTMULTI;
     126    }
     127    if (pMachineConfigFile)
     128    {
     129        delete pMachineConfigFile;
     130        pMachineConfigFile = NULL;
    126131    }
    127132}
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r28205 r28304  
    194194          pAsyncEventQ(NULL)
    195195    {}
     196
     197    ~Data()
     198    {
     199        if (pMainConfigFile)
     200        {
     201            delete pMainConfigFile;
     202            pMainConfigFile = NULL;
     203        }
     204    };
    196205
    197206    // const data members not requiring locking
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