VirtualBox

Changeset 24447 in vbox for trunk/src


Ignore:
Timestamp:
Nov 6, 2009 2:40:24 PM (15 years ago)
Author:
vboxsync
Message:

Main: fix double medium detachment when restoring snapshot

File:
1 edited

Legend:

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

    r24433 r24447  
    18101810            LogFlowThisFunc(("Detaching old current state in differencing image '%s'\n", pMedium->name().raw()));
    18111811
     1812            // we "detach" the medium by removing the attachment object
     1813            // from the current machine data; saveSettings() below will then
     1814            // compare the current machine data with the one in the backup
     1815            // and actually call Medium::detachFrom()
    18121816            mMediaData->mAttachments.remove(pAttach);
    1813             pMedium->detachFrom(mData->mUuid);
    18141817
    18151818            llDiffsToDelete.push_back(pMedium);
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