do cleanup inside inprocessapplication destrutor (#676)

This commit is contained in:
pan-wang 2018-03-15 16:47:21 -07:00 committed by GitHub
parent 8e54e792fb
commit e5661a46b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 54 deletions

View File

@ -29,7 +29,15 @@ IN_PROCESS_APPLICATION::IN_PROCESS_APPLICATION(
IN_PROCESS_APPLICATION::~IN_PROCESS_APPLICATION()
{
// TODO check if anything else needs to be cleaned up
if (m_hLogFileHandle != INVALID_HANDLE_VALUE)
{
m_Timer.CancelTimer();
CloseHandle(m_hLogFileHandle);
m_hLogFileHandle = INVALID_HANDLE_VALUE;
}
m_hThread = NULL;
s_Application = NULL;
}
__override