summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/main.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-31 05:57:41 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-31 05:57:41 +0000
commit081f1880ea898bba1bfd2ba2ff79b5e4de929b86 (patch)
treeeeed45cf1709ac0f2d5109934d03019c5413e02a /plugins/Toaster/src/main.cpp
parentce10ea25b750f23c558a5920cd2b21d00212776a (diff)
Toaster: fixed memleak, added CoInitialize call
git-svn-id: http://svn.miranda-ng.org/main/trunk@15123 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/main.cpp')
-rw-r--r--plugins/Toaster/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Toaster/src/main.cpp b/plugins/Toaster/src/main.cpp
index 72fe21d1fc..39f4c549b7 100644
--- a/plugins/Toaster/src/main.cpp
+++ b/plugins/Toaster/src/main.cpp
@@ -40,6 +40,9 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
+
+ CoInitialize(NULL);
+
HookEvent(ME_SYSTEM_PRESHUTDOWN, &OnPreShutdown);
InitServices();
@@ -56,6 +59,8 @@ extern "C" int __declspec(dllexport) Load(void)
extern "C" int __declspec(dllexport) Unload(void)
{
+ CoUninitialize();
+
return 0;
}