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/Import/src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/Import/src') diff --git a/plugins/Import/src/main.cpp b/plugins/Import/src/main.cpp index 4020f5da87..8f6b875f1a 100644 --- a/plugins/Import/src/main.cpp +++ b/plugins/Import/src/main.cpp @@ -24,8 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. int nImportOptions; -static HANDLE hImportService = NULL; - HINSTANCE hInst; INT_PTR CALLBACK WizardDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam); @@ -117,7 +115,7 @@ extern "C" __declspec(dllexport) int Load(void) { mir_getLP(&pluginInfo); - hImportService = CreateServiceFunction(IMPORT_SERVICE, ImportCommand); + CreateServiceFunction(IMPORT_SERVICE, ImportCommand); CreateServiceFunction(MS_SERVICEMODE_LAUNCH, ServiceMode); RegisterIcons(); @@ -145,6 +143,5 @@ extern "C" __declspec(dllexport) int Load(void) extern "C" __declspec(dllexport) int Unload(void) { - DestroyServiceFunction(hImportService); return 0; } -- cgit v1.2.3