summaryrefslogtreecommitdiff
path: root/plugins/FingerprintNG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-19 16:40:53 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-19 16:40:53 +0000
commit09c0958aeb5c355b75d2cedf67e15ebb5098e980 (patch)
treef62ef1b962316c6049d97f7000fc3d734dd1f1fa /plugins/FingerprintNG
parent8cc57be75a8d90e08426721c628709b29034c37f (diff)
two memory leaks
git-svn-id: http://svn.miranda-ng.org/main/trunk@5044 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FingerprintNG')
-rw-r--r--plugins/FingerprintNG/src/fingerprint.cpp5
-rw-r--r--plugins/FingerprintNG/src/global.h2
-rw-r--r--plugins/FingerprintNG/src/main.cpp1
3 files changed, 8 insertions, 0 deletions
diff --git a/plugins/FingerprintNG/src/fingerprint.cpp b/plugins/FingerprintNG/src/fingerprint.cpp
index 30f6655b4c..8f2cb0c060 100644
--- a/plugins/FingerprintNG/src/fingerprint.cpp
+++ b/plugins/FingerprintNG/src/fingerprint.cpp
@@ -1179,3 +1179,8 @@ void InitFingerModule()
CreateServiceFunction(MS_FP_SAMECLIENTSW, ServiceSameClientsW);
CreateServiceFunction(MS_FP_GETCLIENTICONW, ServiceGetClientIconW);
}
+
+void UninitFingerModule()
+{
+ arMonitoredWindows.destroy();
+}
diff --git a/plugins/FingerprintNG/src/global.h b/plugins/FingerprintNG/src/global.h
index 0a3cf95668..5bca488be6 100644
--- a/plugins/FingerprintNG/src/global.h
+++ b/plugins/FingerprintNG/src/global.h
@@ -131,6 +131,8 @@ typedef struct _foundInfo
void ClearFI();
void InitFingerModule(void);
+void UninitFingerModule(void);
+
int OnOptInitialise(WPARAM wParam, LPARAM lParam);
int OnExtraImageApply(WPARAM wParam, LPARAM lParam);
diff --git a/plugins/FingerprintNG/src/main.cpp b/plugins/FingerprintNG/src/main.cpp
index ce92350c51..b35de299ba 100644
--- a/plugins/FingerprintNG/src/main.cpp
+++ b/plugins/FingerprintNG/src/main.cpp
@@ -75,5 +75,6 @@ extern "C" int __declspec(dllexport) Unload()
HeapDestroy(hHeap);
ClearFI();
+ UninitFingerModule();
return 0;
}