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 --- protocols/AimOscar/src/aim.cpp | 2 -- protocols/AimOscar/src/links.cpp | 9 +-------- protocols/AimOscar/src/links.h | 1 - 3 files changed, 1 insertion(+), 11 deletions(-) (limited to 'protocols/AimOscar/src') diff --git a/protocols/AimOscar/src/aim.cpp b/protocols/AimOscar/src/aim.cpp index 56ee8e3943..c169e47aa4 100644 --- a/protocols/AimOscar/src/aim.cpp +++ b/protocols/AimOscar/src/aim.cpp @@ -116,7 +116,6 @@ extern "C" int __declspec(dllexport) Load(void) InitIcons(); InitExtraIcons(); - return 0; } @@ -125,6 +124,5 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void) { - aim_links_destroy(); return 0; } diff --git a/protocols/AimOscar/src/links.cpp b/protocols/AimOscar/src/links.cpp index f16fd3131b..13671e8518 100644 --- a/protocols/AimOscar/src/links.cpp +++ b/protocols/AimOscar/src/links.cpp @@ -18,8 +18,6 @@ along with this program. If not, see . #include "stdafx.h" -static HANDLE hServiceParseLink; - extern OBJLIST g_Instances; static int SingleHexToDecimal(wchar_t c) @@ -168,11 +166,6 @@ void aim_links_init(void) { static const char szService[] = "AIM/ParseAimLink"; - hServiceParseLink = CreateServiceFunction(szService, ServiceParseAimLink); + CreateServiceFunction(szService, ServiceParseAimLink); AssocMgr_AddNewUrlTypeT("aim:", TranslateT("AIM link protocol"), hInstance, IDI_AOL, szService, 0); } - -void aim_links_destroy(void) -{ - DestroyServiceFunction(hServiceParseLink); -} diff --git a/protocols/AimOscar/src/links.h b/protocols/AimOscar/src/links.h index 2aac49447b..5eb95a9eab 100644 --- a/protocols/AimOscar/src/links.h +++ b/protocols/AimOscar/src/links.h @@ -19,6 +19,5 @@ along with this program. If not, see . #define LINKS_H void aim_links_init(); -void aim_links_destroy(); #endif -- cgit v1.2.3