diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-18 18:33:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-18 18:33:09 +0300 |
commit | 3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch) | |
tree | d09301e8d63cf2bc70601fe683992440d4e2e086 /plugins/TipperYM | |
parent | b5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff) |
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/TipperYM')
-rw-r--r-- | plugins/TipperYM/src/tipper.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/TipperYM/src/tipper.cpp b/plugins/TipperYM/src/tipper.cpp index 2350634fd2..98950da04b 100644 --- a/plugins/TipperYM/src/tipper.cpp +++ b/plugins/TipperYM/src/tipper.cpp @@ -29,7 +29,6 @@ HFONT hFontTitle, hFontLabels, hFontValues, hFontTrayTitle; // hooked here so it's in the main thread
HANDLE hAvChangeEvent, hShowTipEvent, hHideTipEvent, hAckEvent, hFramesSBShow, hFramesSBHide;
HANDLE hSettingChangedEvent, hEventDeleted;
-HANDLE hShowTipService, hShowTipWService, hHideTipService;
HANDLE hReloadFonts = NULL;
HANDLE hFolderChanged, hSkinFolder;
@@ -282,10 +281,6 @@ int Shutdown(WPARAM, LPARAM) if (hHideTipEvent) UnhookEvent(hHideTipEvent);
if (hAckEvent) UnhookEvent(hAckEvent);
- if (hShowTipService) DestroyServiceFunction(hShowTipService);
- if (hShowTipWService) DestroyServiceFunction(hShowTipWService);
- if (hHideTipService) DestroyServiceFunction(hHideTipService);
-
if (hFolderChanged) UnhookEvent(hFolderChanged);
DeinitMessagePump();
@@ -340,12 +335,9 @@ extern "C" int __declspec(dllexport) Load(void) InitOptions();
// for compatibility with mToolTip status tooltips
- hShowTipService = CreateServiceFunction("mToolTip/ShowTip", ShowTip);
-
- hShowTipWService = CreateServiceFunction("mToolTip/ShowTipW", ShowTipW);
-
- hHideTipService = CreateServiceFunction("mToolTip/HideTip", HideTip);
-
+ CreateServiceFunction("mToolTip/ShowTip", ShowTip);
+ CreateServiceFunction("mToolTip/ShowTipW", ShowTipW);
+ CreateServiceFunction("mToolTip/HideTip", HideTip);
CreateServiceFunction("mToolTip/ReloadSkin", ReloadSkin);
hEventPreShutdown = HookEvent(ME_SYSTEM_PRESHUTDOWN, Shutdown);
|