VirtualBox

Changeset 64212 in vbox for trunk/src


Ignore:
Timestamp:
Oct 11, 2016 3:56:15 PM (8 years ago)
Author:
vboxsync
Message:

Main/Snapshot: make sure that the source medium has no parent any more when we're certain that we no longer want to know about it (even if an error happened), as otherwise this leads to confusion and crashes later, because there would be an attempt to save it as part of a VM's medium registry when the medium isn't operational any more

File:
1 edited

Legend:

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

    r63584 r64212  
    31273127
    31283128            if (fNeedSourceUninit)
     3129            {
     3130                // make sure that the diff image to be deleted has no parent,
     3131                // even in error cases (where the deparenting may be missing)
     3132                it->mpSource->i_deparent();
    31293133                it->mpSource->uninit();
     3134            }
    31303135
    31313136            // One attachment is merged, must save the settings
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