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/FTPFileYM/src/ftpfile.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'plugins/FTPFileYM/src') diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index ae85f49aa6..9c42b738db 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -22,7 +22,6 @@ CLIST_INTERFACE *pcli; HINSTANCE hInst; int hLangpack; -HANDLE hServiceUpload, hServiceShowManager, hServiceContactMenu, hServiceMainMenu; HGENMENU hMenu, hMainMenu, hSubMenu[ServerList::FTP_COUNT], hMainSubMenu[ServerList::FTP_COUNT]; extern UploadDialog *uDlg; @@ -396,10 +395,10 @@ extern "C" int __declspec(dllexport) Load(void) HookEvent(ME_SYSTEM_PRESHUTDOWN, Shutdown); HookEvent(ME_OPT_INITIALISE, Options::InitOptions); - hServiceUpload = CreateServiceFunction(MS_FTPFILE_UPLOAD, UploadService); - hServiceShowManager = CreateServiceFunction(MS_FTPFILE_SHOWMANAGER, ShowManagerService); - hServiceContactMenu = CreateServiceFunction(MS_FTPFILE_CONTACTMENU, ContactMenuService); - hServiceMainMenu = CreateServiceFunction(MS_FTPFILE_MAINMENU, MainMenuService); + CreateServiceFunction(MS_FTPFILE_UPLOAD, UploadService); + CreateServiceFunction(MS_FTPFILE_SHOWMANAGER, ShowManagerService); + CreateServiceFunction(MS_FTPFILE_CONTACTMENU, ContactMenuService); + CreateServiceFunction(MS_FTPFILE_MAINMENU, MainMenuService); InitIcolib(); InitHotkeys(); @@ -412,9 +411,5 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void) { - DestroyServiceFunction(hServiceUpload); - DestroyServiceFunction(hServiceShowManager); - DestroyServiceFunction(hServiceContactMenu); - DestroyServiceFunction(hServiceMainMenu); return 0; } -- cgit v1.2.3