[PATCH] comctl32/tests: Fix a memory leak (Valgrind).
Gijs Vermeulen
gijsvrm at gmail.com
Wed Jan 16 18:37:15 CST 2019
Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
---
dlls/comctl32/tests/edit.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/comctl32/tests/edit.c b/dlls/comctl32/tests/edit.c
index bc44d0c240..db4051a947 100644
--- a/dlls/comctl32/tests/edit.c
+++ b/dlls/comctl32/tests/edit.c
@@ -2927,6 +2927,8 @@ static void test_paste(void)
len = SendMessageA(hEdit, WM_GETTEXTLENGTH, 0, 0);
ok(strlen(str) == len, "got %d\n", len);
+ GlobalFree(hmem);
+
/* Prepare clipboard data with multiline text */
hmem = GlobalAlloc(GMEM_MOVEABLE, 255);
ok(hmem != NULL, "got %p (expected != NULL)\n", hmem);
@@ -2957,6 +2959,7 @@ static void test_paste(void)
ok(strlen(str2) == len, "got %d\n", len);
/* Cleanup */
+ GlobalFree(hmem);
DestroyWindow(hEdit);
DestroyWindow(hMultilineEdit);
}
--
2.20.1
More information about the wine-devel
mailing list