diff --git a/src/modules/windowwalker/dll/dllmain.cpp b/src/modules/windowwalker/dll/dllmain.cpp index 69bcbe1650..fb7d643757 100644 --- a/src/modules/windowwalker/dll/dllmain.cpp +++ b/src/modules/windowwalker/dll/dllmain.cpp @@ -58,6 +58,11 @@ public: // Destroy the powertoy and free memory virtual void destroy() override { + if (m_enabled) + { + TerminateProcess(m_hProcess, 1); + } + delete this; }