VirtualBox

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


Ignore:
Timestamp:
Nov 25, 2013 10:33:46 AM (11 years ago)
Author:
vboxsync
Message:

Main/GuestCtrl: More checks; remove IGuestDirectroy from session list after termination.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp

    r49504 r49638  
    284284    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    285285
    286     AssertPtr(mSession);
    287     int rc = mSession->directoryRemoveFromList(this);
    288     AssertRC(rc);
    289 
    290286    HRESULT hr = S_OK;
    291287
    292288    int guestRc;
    293     rc = mData.mProcessTool.Terminate(30 * 1000, &guestRc);
     289    int rc = mData.mProcessTool.Terminate(30 * 1000, &guestRc);
    294290    if (RT_FAILURE(rc))
    295291    {
     
    313309    }
    314310
    315     /*
    316      * Release autocaller before calling uninit.
    317      */
    318     autoCaller.release();
    319 
    320     uninit();
     311    AssertPtr(mSession);
     312    int rc2 = mSession->directoryRemoveFromList(this);
     313    if (RT_SUCCESS(rc))
     314        rc = rc2;
    321315
    322316    LogFlowThisFunc(("Returning rc=%Rrc\n", rc));
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r49610 r49638  
    18791879     * still can hold references to it. */
    18801880    AssertPtr(mSession);
    1881     mSession->processRemoveFromList(this);
     1881    int rc2 = mSession->processRemoveFromList(this);
     1882    if (RT_SUCCESS(vrc))
     1883        vrc = rc2;
    18821884
    18831885    LogFlowFuncLeaveRC(vrc);
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