From 3e9e96f6718b13c069138fb40f24f065ac03c6b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Sep 2017 18:33:09 +0300 Subject: unneeded calls of DestroyServiceFunction() removed --- plugins/TipperYM/src/tipper.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'plugins/TipperYM/src') 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); -- cgit v1.2.3