VirtualBox

Changeset 24655 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Nov 14, 2009 8:56:08 PM (15 years ago)
Author:
vboxsync
Message:

VirtualBoxBase.h: new may throw std::bad_alloc, so don't assing mBackupData before new has returned successfully.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r24654 r24655  
    23462346        if (this->mData && !mBackupData)
    23472347        {
    2348             D *pNewData = new D(*this->mData)
     2348            D *pNewData = new D(*this->mData);
    23492349            mBackupData = this->mData;
    23502350            this->mData = pNewData;
     
    24182418            if (!mBackupData)
    24192419            {
    2420                 D *pNewData = new D(*data)
     2420                D *pNewData = new D(*data);
    24212421                mBackupData = this->mData;
    24222422                this->mData = pNewData;
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