8161923: Fix free in awt_PrintControl

Reviewed-by: vadim
This commit is contained in:
Goetz Lindenmaier 2016-07-20 15:07:48 +02:00
parent e576ea3b90
commit 8ae9e47129

View File

@ -1132,7 +1132,7 @@ BOOL AwtPrintControl::getDevmode( HANDLE hPrinter,
if (dwRet != IDOK) {
/* if failure, cleanup and return failure */
GlobalFree(pDevMode);
GlobalFree(*pDevMode);
*pDevMode = NULL;
return FALSE;
}