summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-18 18:33:09 +0300
commit3e9e96f6718b13c069138fb40f24f065ac03c6b7 (patch)
treed09301e8d63cf2bc70601fe683992440d4e2e086 /plugins/Alarms/src
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/Alarms/src')
-rwxr-xr-xplugins/Alarms/src/alarmlist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp
index a8c04b7d42..0ea5f59810 100755
--- a/plugins/Alarms/src/alarmlist.cpp
+++ b/plugins/Alarms/src/alarmlist.cpp
@@ -12,7 +12,7 @@ DWORD timer_id;
static SYSTEMTIME last_check, last_saved_check;
-HANDLE hAlarmTriggeredEvent, hAddAlarmService;
+HANDLE hAlarmTriggeredEvent;
bool startup = true;
@@ -798,7 +798,7 @@ void InitList()
LoadAlarms();
hAlarmTriggeredEvent = CreateHookableEvent(ME_ALARMS_TRIGGERED);
- hAddAlarmService = CreateServiceFunction(MS_ALARMS_ADDALARM, AddAlarmService);
+ CreateServiceFunction(MS_ALARMS_ADDALARM, AddAlarmService);
InitAlarmWin();
@@ -817,7 +817,6 @@ void DeinitList()
KillTimer(0, timer_id);
DestroyHookableEvent(hAlarmTriggeredEvent);
- DestroyServiceFunction(hAddAlarmService);
SaveAlarms(); // we may have erased some 'cause they were once-offs that were triggeredf
}