VirtualBox

Changeset 27200 in vbox


Ignore:
Timestamp:
Mar 9, 2010 10:10:52 AM (15 years ago)
Author:
vboxsync
Message:

Main: fix assertion and crash when unregistering ISO

File:
1 edited

Legend:

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

    r26984 r27200  
    13731373    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    13741374
    1375     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     1375//     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    13761376
    13771377    /// @todo update m->description and save the global registry (and local
    13781378    /// registries of portable VMs referring to this medium), this will also
    13791379    /// require to add the mRegistered flag to data
     1380
     1381    NOREF(aDescription);
    13801382
    13811383    ReturnComNotImplemented();
     
    20612063    }
    20622064
     2065    // make a copy of VirtualBox pointer which gets nulled by uninit()
     2066    ComObjPtr<VirtualBox> pVirtualBox(m->pVirtualBox);
     2067
    20632068    /* Keep the locks held until after uninit, as otherwise the consistency
    20642069     * of the medium tree cannot be guaranteed. */
     
    20702075    {
    20712076        AutoWriteLock vboxlock(m->pVirtualBox COMMA_LOCKVAL_SRC_POS);
    2072         m->pVirtualBox->saveSettings();
     2077        pVirtualBox->saveSettings();
    20732078    }
    20742079
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