summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/ftpfile.cpp
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/FTPFileYM/src/ftpfile.cpp
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/FTPFileYM/src/ftpfile.cpp')
-rw-r--r--plugins/FTPFileYM/src/ftpfile.cpp13
1 files changed, 4 insertions, 9 deletions
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;
}