summaryrefslogtreecommitdiff
path: root/stopspam/src/stopspam.cpp
diff options
context:
space:
mode:
authormataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-24 18:36:28 +0000
committermataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-04-24 18:36:28 +0000
commit44555cbf80933e0fad4686341676fe345b1faff3 (patch)
treee2e9ceae1d8df93885b92ccca176d587820138fc /stopspam/src/stopspam.cpp
parentb76bc645756a2d7a474ab8d32589e1854e45c764 (diff)
stopspam:
added x64 configurations added destroing functions on exit git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@29 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'stopspam/src/stopspam.cpp')
-rw-r--r--stopspam/src/stopspam.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/stopspam/src/stopspam.cpp b/stopspam/src/stopspam.cpp
index 4b84d10..ed1f203 100644
--- a/stopspam/src/stopspam.cpp
+++ b/stopspam/src/stopspam.cpp
@@ -4,7 +4,7 @@ struct MM_INTERFACE mmi;
UTF8_INTERFACE utfi;
-HANDLE hFunc;
+HANDLE hFunc, hTempRemove;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -74,7 +74,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
HookEvent(ME_SYSTEM_MODULESLOADED, OnSystemModulesLoaded);
// Add deliting temporary contacts
- CreateServiceFunction(pluginName"/RemoveTempContacts", RemoveTempContacts);
+ hTempRemove = CreateServiceFunction(pluginName"/RemoveTempContacts", RemoveTempContacts);
ZeroMemory(&mi, sizeof(mi));
mi.cbSize = sizeof(mi);
mi.position = -0x7FFFFFFF;
@@ -97,6 +97,11 @@ extern "C" int __declspec(dllexport) Unload(void)
DestroyServiceFunction(hFunc);
hFunc = 0;
}
+ if(hTempRemove)
+ {
+ DestroyServiceFunction(hTempRemove);
+ hFunc = 0;
+ }
delete plSets;
return 0;