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/BasicHistory/src/BasicHistory.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/BasicHistory/src') diff --git a/plugins/BasicHistory/src/BasicHistory.cpp b/plugins/BasicHistory/src/BasicHistory.cpp index 1f7e86af19..8b42954c44 100644 --- a/plugins/BasicHistory/src/BasicHistory.cpp +++ b/plugins/BasicHistory/src/BasicHistory.cpp @@ -27,7 +27,6 @@ HINSTANCE hInst; HCURSOR hCurSplitNS, hCurSplitWE; HANDLE g_hMainThread = NULL; -HANDLE hServiceShowContactHistory, hServiceDeleteAllContactHistory, hServiceExecuteTask; HANDLE *hEventIcons = NULL; int iconsNum = 3; HANDLE hToolbarButton; @@ -253,9 +252,9 @@ extern "C" int __declspec(dllexport) Load(void) hCurSplitNS = LoadCursor(NULL, IDC_SIZENS); hCurSplitWE = LoadCursor(NULL, IDC_SIZEWE); - hServiceShowContactHistory = CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowContactHistory); - hServiceDeleteAllContactHistory = CreateServiceFunction(MS_HISTORY_DELETEALLCONTACTHISTORY, HistoryWindow::DeleteAllUserHistory); - hServiceExecuteTask = CreateServiceFunction(MS_HISTORY_EXECUTE_TASK, ExecuteTaskService); + CreateServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY, ShowContactHistory); + CreateServiceFunction(MS_HISTORY_DELETEALLCONTACTHISTORY, HistoryWindow::DeleteAllUserHistory); + CreateServiceFunction(MS_HISTORY_EXECUTE_TASK, ExecuteTaskService); Options::instance = new Options(); @@ -274,10 +273,6 @@ extern "C" int __declspec(dllexport) Unload(void) CloseHandle(g_hMainThread); g_hMainThread = NULL; - DestroyServiceFunction(hServiceShowContactHistory); - DestroyServiceFunction(hServiceDeleteAllContactHistory); - DestroyServiceFunction(hServiceExecuteTask); - HistoryWindow::Deinit(); DestroyCursor(hCurSplitNS); -- cgit v1.2.3