Zhiyi Zhang : user32/tests: Fix a memory leak.

Alexandre Julliard julliard at winehq.org
Mon Jul 16 14:40:01 CDT 2018


Module: wine
Branch: master
Commit: 8318b11d7f0f1a50be447b515aa6d0b11eb18827
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8318b11d7f0f1a50be447b515aa6d0b11eb18827

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Mon Jul 16 15:35:58 2018 +0800

user32/tests: Fix a memory leak.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/tests/dialog.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c
index 807a85b..e1fe803 100644
--- a/dlls/user32/tests/dialog.c
+++ b/dlls/user32/tests/dialog.c
@@ -787,6 +787,7 @@ static void test_IsDialogMessage(void)
     ok (!IsDialogMessageA(msg.hwnd, &msg), "expected failure\n");
 
     UnhookWindowsHookEx(hook);
+    DestroyWindow(g_hwndMain);
 }
 
 




More information about the wine-cvs mailing list