diff --git a/src/modules/launcher/Wox.Launcher/dllmain.cpp b/src/modules/launcher/Wox.Launcher/dllmain.cpp index d3ee29e670..773c726525 100644 --- a/src/modules/launcher/Wox.Launcher/dllmain.cpp +++ b/src/modules/launcher/Wox.Launcher/dllmain.cpp @@ -50,6 +50,14 @@ public: 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;