VirtualBox

Changeset 71564 in vbox


Ignore:
Timestamp:
Mar 29, 2018 11:47:25 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121544
Message:

Guest Control/Main: Added GuestProcessTool::uninit() and also uninitialize the session object there.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestProcessImpl.h

    r71406 r71564  
    216216    int init(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, bool fAsync, int *pGuestRc);
    217217
     218    void uninit(void);
     219
    218220    int getCurrentBlock(uint32_t uHandle, GuestProcessStreamBlock &strmBlock);
    219221
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r71560 r71564  
    19581958GuestProcessTool::~GuestProcessTool(void)
    19591959{
    1960      if (!pProcess.isNull())
    1961      {
    1962          /* Terminate (and unregister) process. */
    1963          pProcess->uninit();
    1964 
    1965          /* Release reference. */
    1966          pProcess.setNull();
    1967      }
     1960    uninit();
    19681961}
    19691962
     
    20041997    LogFlowFuncLeaveRC(vrc);
    20051998    return vrc;
     1999}
     2000
     2001void GuestProcessTool::uninit(void)
     2002{
     2003    if (!pProcess.isNull())
     2004    {
     2005        /* Terminate (and unregister) process. */
     2006        pProcess->uninit();
     2007
     2008        /* Release reference. */
     2009        pProcess.setNull();
     2010    }
     2011
     2012    if (pSession)
     2013        pSession.setNull();
    20062014}
    20072015
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette