summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src/StartupStatus/ss_profiles.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/StatusManager/src/StartupStatus/ss_profiles.cpp
parentb5de62080a2384e9f66d7bafbf971aa5b4b7c0c1 (diff)
unneeded calls of DestroyServiceFunction() removed
Diffstat (limited to 'plugins/StatusManager/src/StartupStatus/ss_profiles.cpp')
-rw-r--r--plugins/StatusManager/src/StartupStatus/ss_profiles.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp b/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp
index 5cb311b605..4dad85be05 100644
--- a/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp
+++ b/plugins/StatusManager/src/StartupStatus/ss_profiles.cpp
@@ -25,7 +25,6 @@ extern HINSTANCE hInst;
extern int protoCount;
static int menuprofiles[MAX_MMITEMS];
-static HANDLE hProfileServices[MAX_MMITEMS];
static int mcount = 0;
static PROFILECE *pce = NULL;
@@ -34,7 +33,6 @@ static int pceCount = 0;
static UINT_PTR releaseTtbTimerId = 0;
static HANDLE hTBModuleLoadedHook;
-static HANDLE hLoadAndSetProfileService;
static HANDLE hMessageHook = NULL;
static HWND hMessageWindow = NULL;
@@ -72,7 +70,7 @@ static int CreateMainMenuItems(WPARAM, LPARAM)
char servicename[128];
mir_snprintf(servicename, "%s%d", MS_SS_MENUSETPROFILEPREFIX, mcount);
- hProfileServices[mcount] = CreateServiceFunctionParam(servicename, profileService, mcount);
+ CreateServiceFunctionParam(servicename, profileService, mcount);
mi.name.w = profilename;
mi.position = 2000100000 + mcount;
@@ -310,13 +308,7 @@ int SSLoadMainOptions()
int LoadProfileModule()
{
- hLoadAndSetProfileService = CreateServiceFunction(MS_SS_LOADANDSETPROFILE, LoadAndSetProfile);
- return 0;
-}
-
-int UnloadProfileModule()
-{
- DestroyServiceFunction(hLoadAndSetProfileService);
+ CreateServiceFunction(MS_SS_LOADANDSETPROFILE, LoadAndSetProfile);
return 0;
}
@@ -333,9 +325,6 @@ int InitProfileModule()
int DeinitProfilesModule()
{
- for (int i = 0; i < mcount; i++)
- DestroyServiceFunction(hProfileServices[i]);
-
if (pce) {
for (int i = 0; i < pceCount; i++)
free(pce[i].szProto);