VirtualBox

Changeset 64217 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2016 10:26:52 AM (8 years ago)
Author:
vboxsync
Message:

Main/Snapshot: fix regression in previous fix (i_deparent may only be called for objects which do have a parent, and with the current diff image merging/deleting code, especially the error cases, it's unpredictable if the deparenting was already done or not)

File:
1 edited

Legend:

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

    r64212 r64217  
    31303130                // make sure that the diff image to be deleted has no parent,
    31313131                // even in error cases (where the deparenting may be missing)
    3132                 it->mpSource->i_deparent();
     3132                if (it->mpSource->i_getParent())
     3133                    it->mpSource->i_deparent();
    31333134                it->mpSource->uninit();
    31343135            }
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