Skip to content

Commit

Permalink
Merge pull request microsoft#15 from microsoft/terminateLauncher
Browse files Browse the repository at this point in the history
Terminate wox when we exit PowerToys
  • Loading branch information
alekhyareddy28 committed Mar 23, 2020
2 parents 2efe582 + 398666a commit c57b55e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/launcher/Wox.Launcher/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ class Wox_Launcher : public PowertoyModuleIface {
init_settings();
};

~Wox_Launcher() {
if (m_enabled)
{
TerminateProcess(m_hProcess, 1);
}
m_enabled = false;
}

// Destroy the powertoy and free memory
virtual void destroy() override {
delete this;
Expand Down

0 comments on commit c57b55e

Please sign in to comment.