提交 a6b361f9 编写于 作者: P psadhukhan

8205356: Choose printer defaults

Reviewed-by: prr, mschoene, rhalade
上级 005e0e17
...@@ -886,10 +886,12 @@ Java_sun_print_Win32PrintService_getDefaultSettings(JNIEnv *env, ...@@ -886,10 +886,12 @@ Java_sun_print_Win32PrintService_getDefaultSettings(JNIEnv *env,
if (!present) { if (!present) {
defIndices[0] = papers[0]; 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 RESTORE_CONTROLWORD
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册