From d7b7f783ab8af0d717c7968a331233917e4c11b8 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 1 Jan 2010 18:50:45 +0300 Subject: [PATCH] comdlg32/tests: Free global blocks after PrintDlg() with PD_RETURNDEFAULT. --- dlls/comdlg32/tests/printdlg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/comdlg32/tests/printdlg.c b/dlls/comdlg32/tests/printdlg.c index 4e189eed7e7..61eefa6144f 100644 --- a/dlls/comdlg32/tests/printdlg.c +++ b/dlls/comdlg32/tests/printdlg.c @@ -323,6 +323,8 @@ static void test_abort_proc(void) ok(DeleteFileA(filename), "Failed to delete temporary file\n"); return; } + GlobalFree(pd.hDevMode); + GlobalFree(pd.hDevNames); ok(pd.hDC != NULL, "PrintDlg didn't return a DC.\n"); if (!(print_dc = pd.hDC))