VirtualBox

Changeset 18158 in vbox for trunk/src


Ignore:
Timestamp:
Mar 23, 2009 5:36:37 PM (16 years ago)
Author:
vboxsync
Message:

fixed SEGFAULT in MachineImpl::rollback()

File:
1 edited

Legend:

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

    r18115 r18158  
    77687768    }
    77697769
    7770     /* rollback any changes to devices after restoring the list */
    7771     StorageControllerList::const_iterator it = mStorageControllers->begin();
    7772     while (it != mStorageControllers->end())
    7773     {
    7774         if ((*it)->isModified())
    7775             (*it)->rollback();
    7776 
    7777         ++ it;
     7770    if (!mStorageControllers.isNull())
     7771    {
     7772        /* rollback any changes to devices after restoring the list */
     7773        StorageControllerList::const_iterator it = mStorageControllers->begin();
     7774        while (it != mStorageControllers->end())
     7775        {
     7776            if ((*it)->isModified())
     7777                (*it)->rollback();
     7778
     7779            ++ it;
     7780        }
    77787781    }
    77797782
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