VirtualBox

Changeset 49101 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Oct 15, 2013 3:12:55 AM (11 years ago)
Author:
vboxsync
Message:

Main/NATNetwork.cpp: replace implicit call of autolock release, with scope.

File:
1 edited

Legend:

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

    r49100 r49101  
    710710
    711711#ifdef NAT_XML_SERIALIZATION
    712     AutoWriteLock vboxLock(mVirtualBox COMMA_LOCKVAL_SRC_POS);
    713     HRESULT rc = mVirtualBox->saveSettings();
    714     ComAssertComRCRetRC(rc);
    715     vboxLock.release();
     712    {
     713        AutoWriteLock vboxLock(mVirtualBox COMMA_LOCKVAL_SRC_POS);
     714        HRESULT rc = mVirtualBox->saveSettings();
     715        ComAssertComRCRetRC(rc);
     716    }
    716717#endif
    717718
     
    752753
    753754#ifdef NAT_XML_SERIALIZATION
    754     AutoWriteLock vboxLock(mVirtualBox COMMA_LOCKVAL_SRC_POS);
    755     HRESULT rc = mVirtualBox->saveSettings();
    756     ComAssertComRCRetRC(rc);
    757     vboxLock.release();
     755    {
     756        AutoWriteLock vboxLock(mVirtualBox COMMA_LOCKVAL_SRC_POS);
     757        HRESULT rc = mVirtualBox->saveSettings();
     758        ComAssertComRCRetRC(rc);
     759    }
    758760#endif
    759761
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