summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/main.cpp')
-rw-r--r--protocols/Tox/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
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