summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-21 20:07:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-21 20:07:42 +0000
commit5c5a5b5f3f56e973f33aaa373e80782c480d7523 (patch)
tree8d0a2b4bc92e7b21bc7d588783b64d2a982c2b47
parente461ff6e109039b7c8993877a68b2a0ecf3ff413 (diff)
forgotten to close a dll
git-svn-id: http://svn.miranda-ng.org/main/trunk@1096 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--src/modules/plugins/dll_sniffer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/plugins/dll_sniffer.cpp b/src/modules/plugins/dll_sniffer.cpp
index 531c9e6919..59bcacc652 100644
--- a/src/modules/plugins/dll_sniffer.cpp
+++ b/src/modules/plugins/dll_sniffer.cpp
@@ -142,7 +142,8 @@ MUUID* GetPluginInterfaces(const TCHAR* ptszFileName, bool& bIsPlugin)
}
__finally
{
- UnmapViewOfFile(ptr);
+ if (ptr) UnmapViewOfFile(ptr);
+ if (hMap) CloseHandle(hMap);
CloseHandle(hFile);
};