Kill WW app on exit (#1699)

Co-authored-by: Beta Tadele <betadele@microsoft.com>
This commit is contained in:
Betsegaw Tadele 2020-03-26 13:43:01 -07:00 committed by GitHub
parent ff6c86b932
commit 38fc9f00a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,11 @@ public:
// Destroy the powertoy and free memory
virtual void destroy() override
{
if (m_enabled)
{
TerminateProcess(m_hProcess, 1);
}
delete this;
}