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/ZeroNotification/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/ZeroNotification') diff --git a/plugins/ZeroNotification/src/main.cpp b/plugins/ZeroNotification/src/main.cpp index 9860853228..26e8677049 100644 --- a/plugins/ZeroNotification/src/main.cpp +++ b/plugins/ZeroNotification/src/main.cpp @@ -13,7 +13,7 @@ https://miranda-ng.org/ HINSTANCE hInst; -static HANDLE hEventSoundSettingChange, hEventStatusModeChange, hEventOptionsInitialize, hAckEvent, hSoundMenu; +static HANDLE hEventSoundSettingChange, hEventStatusModeChange, hEventOptionsInitialize, hAckEvent; HGENMENU noSoundMenu; int hLangpack; @@ -231,7 +231,7 @@ extern "C" __declspec(dllexport) int Load(void) //The menu item - begin if (!db_get_b(NULL, MODNAME, "HideMenu", 1)) { - hSoundMenu = CreateServiceFunction(MODNAME "/MenuCommand", NoSoundMenuCommand); + CreateServiceFunction(MODNAME "/MenuCommand", NoSoundMenuCommand); CMenuItem mi; mi.position = -0x7FFFFFFF; @@ -257,6 +257,5 @@ extern "C" __declspec(dllexport) int Unload(void) UnhookEvent(hEventSoundSettingChange); UnhookEvent(hEventOptionsInitialize); UnhookEvent(hAckEvent); - DestroyServiceFunction(hSoundMenu); return 0; } \ No newline at end of file -- cgit v1.2.3