VirtualBox

Changeset 25913 in vbox


Ignore:
Timestamp:
Jan 19, 2010 12:58:00 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56737
Message:

Main: fix missing cleanup of snapshots in Machine destructor (causes leak and misleading error messages when machine is inaccessible)

File:
1 edited

Legend:

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

    r25905 r25913  
    57875787    if (getClassID() == clsidMachine)
    57885788    {
    5789         /* reset some important fields of mData */
     5789        // clean up the snapshots list (Snapshot::uninit() will handle the snapshot's children recursively)
     5790        if (mData->mFirstSnapshot)
     5791        {
     5792            mData->mFirstSnapshot->uninit();
     5793            mData->mFirstSnapshot.setNull();
     5794        }
     5795
    57905796        mData->mCurrentSnapshot.setNull();
    5791         mData->mFirstSnapshot.setNull();
    57925797    }
    57935798
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