comdlg32/tests: Free global blocks after PrintDlg() with PD_RETURNDEFAULT.

This commit is contained in:
Nikolay Sivov 2010-01-01 18:50:45 +03:00 committed by Alexandre Julliard
parent 4fec073d49
commit d7b7f783ab
1 changed files with 2 additions and 0 deletions

View File

@ -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))