From 69839c26be7521aade107d06b2c8108f9f01ce97 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 25 Jan 2015 10:04:32 +0000 Subject: added FreeLibrary after LoadLibrary git-svn-id: http://svn.miranda-ng.org/main/trunk@11903 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/src/message_pump.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/TipperYM/src/message_pump.cpp b/plugins/TipperYM/src/message_pump.cpp index 6ad04e4af4..598d9fb69b 100644 --- a/plugins/TipperYM/src/message_pump.cpp +++ b/plugins/TipperYM/src/message_pump.cpp @@ -20,6 +20,7 @@ Boston, MA 02111-1307, USA. #include "common.h" +HMODULE hDwmapiDll = 0; HRESULT (WINAPI *MyDwmEnableBlurBehindWindow)(HWND hWnd, DWM_BLURBEHIND *pBlurBehind) = 0; unsigned int uintMessagePumpThreadId = 0; @@ -231,7 +232,7 @@ void InitMessagePump() wcl.lpszClassName = POP_WIN_CLASS; RegisterClassEx(&wcl); - HMODULE hDwmapiDll = LoadLibrary(_T("dwmapi.dll")); + hDwmapiDll = LoadLibrary(_T("dwmapi.dll")); if (hDwmapiDll) MyDwmEnableBlurBehindWindow = (HRESULT (WINAPI *)(HWND, DWM_BLURBEHIND *))GetProcAddress(hDwmapiDll, "DwmEnableBlurBehindWindow"); @@ -242,6 +243,7 @@ void DeinitMessagePump() { PostMPMessage(WM_QUIT, 0, 0); UnregisterClass(POP_WIN_CLASS, hInst); + FreeLibrary(hDwmapiDll); } INT_PTR ShowTip(WPARAM wParam, LPARAM lParam) -- cgit v1.2.3