From f435c6b618bfded57d65bb46aa91d94f2cf404dd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 10 Jun 2020 18:41:08 +0300 Subject: fixes #2441 (New_GPG: miranda-ng dies after switching the plugin off) --- plugins/New_GPG/src/init.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/New_GPG/src/init.cpp') diff --git a/plugins/New_GPG/src/init.cpp b/plugins/New_GPG/src/init.cpp index c142125f3a..b2450f06dc 100755 --- a/plugins/New_GPG/src/init.cpp +++ b/plugins/New_GPG/src/init.cpp @@ -191,9 +191,12 @@ int CMPlugin::Load() ///////////////////////////////////////////////////////////////////////////////////////// +void RemoveHandlers(); extern list transfers; int CMPlugin::Unload() { + RemoveHandlers(); + for (auto p : transfers) if (!p.empty()) boost::filesystem::remove(p); -- cgit v1.2.3