summaryrefslogtreecommitdiff
path: root/plugins/ZeroNotification
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ZeroNotification')
-rw-r--r--plugins/ZeroNotification/src/main.cpp5
1 files changed, 2 insertions, 3 deletions
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