VirtualBox

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

File:
1 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 */
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