Signed-off-by: Gijs Vermeulen gijsvrm@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); }