Fix a few leaked handles (#1260)
This commit is contained in:
parent
cc96a611ea
commit
e23d9cb4ac
|
|
@ -44,7 +44,6 @@ IN_PROCESS_APPLICATION::IN_PROCESS_APPLICATION(
|
||||||
|
|
||||||
IN_PROCESS_APPLICATION::~IN_PROCESS_APPLICATION()
|
IN_PROCESS_APPLICATION::~IN_PROCESS_APPLICATION()
|
||||||
{
|
{
|
||||||
m_hThread = NULL;
|
|
||||||
s_Application = NULL;
|
s_Application = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -190,8 +189,6 @@ IN_PROCESS_APPLICATION::ShutDownInternal()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CloseHandle(m_hThread);
|
|
||||||
m_hThread = NULL;
|
|
||||||
s_Application = NULL;
|
s_Application = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
// Thread executing the .NET Core process
|
// Thread executing the .NET Core process
|
||||||
HANDLE m_hThread;
|
HandleWrapper<InvalidHandleTraits> m_hThread;
|
||||||
|
|
||||||
// The request handler callback from managed code
|
// The request handler callback from managed code
|
||||||
PFN_REQUEST_HANDLER m_RequestHandler;
|
PFN_REQUEST_HANDLER m_RequestHandler;
|
||||||
|
|
@ -134,7 +134,7 @@ private:
|
||||||
PFN_ASYNC_COMPLETION_HANDLER m_AsyncCompletionHandler;
|
PFN_ASYNC_COMPLETION_HANDLER m_AsyncCompletionHandler;
|
||||||
|
|
||||||
// The event that gets triggered when managed initialization is complete
|
// The event that gets triggered when managed initialization is complete
|
||||||
HANDLE m_pInitalizeEvent;
|
HandleWrapper<InvalidHandleTraits> m_pInitalizeEvent;
|
||||||
|
|
||||||
STRU m_struExeLocation;
|
STRU m_struExeLocation;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue