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/TabSRMM/src/srmm.cpp | 1 - plugins/TabSRMM/src/stdafx.h | 1 - plugins/TabSRMM/src/typingnotify.cpp | 4 +--- 3 files changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp index 0c71228430..9c2de2c656 100644 --- a/plugins/TabSRMM/src/srmm.cpp +++ b/plugins/TabSRMM/src/srmm.cpp @@ -91,7 +91,6 @@ extern "C" int __declspec(dllexport) Unload(void) Skin->UnloadAeroTabs(); CleanTempFiles(); delete Skin; - DestroyServiceFunction(hTypingNotify); delete sendLater; delete sendQueue; return iRet; diff --git a/plugins/TabSRMM/src/stdafx.h b/plugins/TabSRMM/src/stdafx.h index b7fad5cf5f..b9b6827200 100644 --- a/plugins/TabSRMM/src/stdafx.h +++ b/plugins/TabSRMM/src/stdafx.h @@ -219,7 +219,6 @@ extern NEN_OPTIONS nen_options; extern HINSTANCE g_hInst; extern CSkinItem SkinItems[]; extern TContainerData *pFirstContainer, *pLastActiveContainer; -extern HANDLE hTypingNotify; extern ButtonSet g_ButtonSet; extern HANDLE g_hEvent; extern RECT rcLastStatusBarClick; diff --git a/plugins/TabSRMM/src/typingnotify.cpp b/plugins/TabSRMM/src/typingnotify.cpp index 42a3238131..f3757364e5 100644 --- a/plugins/TabSRMM/src/typingnotify.cpp +++ b/plugins/TabSRMM/src/typingnotify.cpp @@ -1,7 +1,5 @@ #include "stdafx.h" -HANDLE hTypingNotify; - static HGENMENU hDisableMenu = nullptr; static MWindowList hPopupsList = nullptr; @@ -531,7 +529,7 @@ int TN_ModuleInit() mir_snwprintf(szStop, TranslateT("...has stopped typing.")); if (PluginConfig.g_bPopupAvail && ShowMenu) { - hTypingNotify = CreateServiceFunction("TypingNotify/EnableDisableMenuCommand", EnableDisableMenuCommand); + CreateServiceFunction("TypingNotify/EnableDisableMenuCommand", EnableDisableMenuCommand); CMenuItem mi; SET_UID(mi, 0xe18fd2cf, 0xcf90, 0x459e, 0xb6, 0xe6, 0x70, 0xec, 0xad, 0xc6, 0x73, 0xef); -- cgit v1.2.3