VirtualBox

Changeset 65390 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 20, 2017 3:03:00 PM (8 years ago)
Author:
vboxsync
Message:

Main/Machine+Medium: must not touch the refcount of the current object in the uninit method if it was called from the FinalRelease method

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

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

    r65158 r65390  
    1258712587     *  This self reference will be released as the very last step on return.
    1258812588     */
    12589     ComObjPtr<SessionMachine> selfRef = this;
     12589    ComObjPtr<SessionMachine> selfRef;
     12590    if (aReason != Uninit::Unexpected)
     12591        selfRef = this;
    1259012592
    1259112593    /* Enclose the state transition Ready->InUninit->NotReady */
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r65120 r65390  
    15921592     * re-acquired in the right place later. See Medium::getParent() for sample
    15931593     * code how to do this safely. */
    1594     ComObjPtr<VirtualBox> pVirtualBox(m->pVirtualBox);
     1594    VirtualBox *pVirtualBox = m->pVirtualBox;
    15951595    if (!pVirtualBox)
    15961596        return;
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