summaryrefslogtreecommitdiff
path: root/plugins/NoHistory
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
commit3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch)
treed09301e8d63cf2bc70601fe683992440d4e2e086 /plugins/NoHistory
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/NoHistory')
-rw-r--r--plugins/NoHistory/src/dllmain.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/NoHistory/src/dllmain.cpp b/plugins/NoHistory/src/dllmain.cpp
index 3d95c96dd8..ebf869ffdf 100644
--- a/plugins/NoHistory/src/dllmain.cpp
+++ b/plugins/NoHistory/src/dllmain.cpp
@@ -9,7 +9,6 @@ static int SrmmMenu_ProcessEvent(WPARAM wParam, LPARAM lParam);
static int SrmmMenu_ProcessIconClick(WPARAM wParam, LPARAM lParam);
HGENMENU hMenuToggle, hMenuClear;
-HANDLE hServiceToggle, hServiceClear;
mir_cs list_cs;
@@ -282,16 +281,13 @@ extern "C" __declspec (dllexport) int Load()
HookEvent(ME_DB_EVENT_ADDED, OnDatabaseEventAdd);
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
- hServiceToggle = CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle);
- hServiceClear = CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear);
+ CreateServiceFunction(MS_NOHISTORY_TOGGLE, ServiceToggle);
+ CreateServiceFunction(MS_NOHISTORY_CLEAR, ServiceClear);
return 0;
}
extern "C" __declspec (dllexport) int Unload(void)
{
- DestroyServiceFunction(hServiceToggle);
- DestroyServiceFunction(hServiceClear);
-
RemoveReadEvents();
return 0;
}