From 603ac95a7dd5231d56b2c4e930b88dc8fb9e40a1 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 24 Dec 2014 21:35:41 +0000 Subject: Tox: calling of api function from libtox.dll git-svn-id: http://svn.miranda-ng.org/main/trunk@11606 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/Tox/src/main.cpp') diff --git a/protocols/Tox/src/main.cpp b/protocols/Tox/src/main.cpp index 4077163196..00510624a7 100644 --- a/protocols/Tox/src/main.cpp +++ b/protocols/Tox/src/main.cpp @@ -2,6 +2,7 @@ int hLangpack; HINSTANCE g_hInstance; +HMODULE g_hToxLibrary = NULL; PLUGININFOEX pluginInfo = { @@ -46,5 +47,9 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void) { + if (g_hToxLibrary) + { + FreeLibrary(g_hToxLibrary); + } return 0; } \ No newline at end of file -- cgit v1.2.3