Mercurial > hg > release > icedtea7-forest-2.6 > jdk
changeset 9686:fc0d98b4f146
8205356: Choose printer defaults
Reviewed-by: prr, mschoene, rhalade
author | psadhukhan |
---|---|
date | Tue, 21 Aug 2018 11:43:03 +0530 |
parents | f9b804d9b983 |
children | b7f790390313 |
files | src/windows/native/sun/windows/WPrinterJob.cpp |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/native/sun/windows/WPrinterJob.cpp Tue Jan 29 10:15:46 2019 +0000 +++ b/src/windows/native/sun/windows/WPrinterJob.cpp Tue Aug 21 11:43:03 2018 +0530 @@ -823,10 +823,12 @@ if (!present) { defIndices[0] = papers[0]; } - if (papers != NULL) { - free((char*)papers); - } } + // If DeviceCapabilities fails, then also free paper allocation + if (papers != NULL) { + free((char*)papers); + } + } RESTORE_CONTROLWORD }