diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-09 12:51:17 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-09 12:51:17 +0000 |
commit | eff5259d6dac303fafa0e661a181428680197584 (patch) | |
tree | 73a89e1d6636b2b154a9e7f24c98a60ed27fa2d6 /plugins/MessageState/src/main.cpp | |
parent | 2ce8833450aa05cdc598abd2f7ca1b68afa3ae5d (diff) |
MessageState: code optimization; leaks fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15314 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MessageState/src/main.cpp')
-rw-r--r-- | plugins/MessageState/src/main.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/MessageState/src/main.cpp b/plugins/MessageState/src/main.cpp index f9091a9722..ce6b830092 100644 --- a/plugins/MessageState/src/main.cpp +++ b/plugins/MessageState/src/main.cpp @@ -35,16 +35,13 @@ extern "C" int __declspec(dllexport) Load(void) {
mir_getLP(&pluginInfo);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
-
- hUpdateService = CreateServiceFunction(MS_MESSAGESTATE_UPDATE, UpdateService);
-
+ InitServices();
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- if (hUpdateService)
- DestroyServiceFunction(hUpdateService);
+ DestroyServices();
return 0;
}
\ No newline at end of file |