summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src/init.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-10 18:41:08 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-10 18:41:15 +0300
commitf435c6b618bfded57d65bb46aa91d94f2cf404dd (patch)
tree844d2acf3df595510f9837a563e865dddec143e8 /plugins/New_GPG/src/init.cpp
parent073d217dffa8906d0024d3d8c471b76fabf79f95 (diff)
fixes #2441 (New_GPG: miranda-ng dies after switching the plugin off)
Diffstat (limited to 'plugins/New_GPG/src/init.cpp')
-rwxr-xr-xplugins/New_GPG/src/init.cpp3
1 files changed, 3 insertions, 0 deletions
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<wstring> transfers;
int CMPlugin::Unload()
{
+ RemoveHandlers();
+
for (auto p : transfers)
if (!p.empty())
boost::filesystem::remove(p);