summaryrefslogtreecommitdiff
path: root/plugins/BuddyExpectator/src/BuddyExpectator.cpp
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/BuddyExpectator/src/BuddyExpectator.cpp
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/BuddyExpectator/src/BuddyExpectator.cpp')
-rw-r--r--plugins/BuddyExpectator/src/BuddyExpectator.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/plugins/BuddyExpectator/src/BuddyExpectator.cpp b/plugins/BuddyExpectator/src/BuddyExpectator.cpp
index 2b1b4ce00b..0814711a6e 100644
--- a/plugins/BuddyExpectator/src/BuddyExpectator.cpp
+++ b/plugins/BuddyExpectator/src/BuddyExpectator.cpp
@@ -27,7 +27,6 @@ int hLangpack;
DWORD timer_id = 0;
-HANDLE hContactReturnedAction, hContactStillAbsentAction, hMissYouAction, hMenuMissYouClick;
HGENMENU hContactMenu;
HICON hIcon;
@@ -648,11 +647,6 @@ int ContactAdded(WPARAM hContact, LPARAM)
int onShutdown(WPARAM, LPARAM)
{
- DestroyServiceFunction(hContactReturnedAction);
- DestroyServiceFunction(hContactStillAbsentAction);
- DestroyServiceFunction(hMissYouAction);
- DestroyServiceFunction(hMenuMissYouClick);
-
IcoLib_ReleaseIcon(hIcon);
return 0;
}
@@ -664,10 +658,10 @@ extern "C" int __declspec(dllexport) Load(void)
InitOptions();
- hContactReturnedAction = CreateServiceFunction("BuddyExpectator/actionReturned", ContactReturnedAction);
- hContactStillAbsentAction = CreateServiceFunction("BuddyExpectator/actionStillAbsent", ContactStillAbsentAction);
- hMissYouAction = CreateServiceFunction("BuddyExpectator/actionMissYou", MissYouAction);
- hMenuMissYouClick = CreateServiceFunction("BuddyExpectator/actionMissYouClick", MenuMissYouClick);
+ CreateServiceFunction("BuddyExpectator/actionReturned", ContactReturnedAction);
+ CreateServiceFunction("BuddyExpectator/actionStillAbsent", ContactStillAbsentAction);
+ CreateServiceFunction("BuddyExpectator/actionMissYou", MissYouAction);
+ CreateServiceFunction("BuddyExpectator/actionMissYouClick", MenuMissYouClick);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, SettingChanged);
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);