changeset 17601:8e45b8f5a16a

8161923: Fix free in awt_PrintControl. Reviewed-by: vadim
author goetz
date Wed, 20 Jul 2016 15:07:48 +0200
parents e6c75f01a054
children 470628a12878
files src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp	Thu Aug 25 16:01:44 2016 +0530
+++ b/src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp	Wed Jul 20 15:07:48 2016 +0200
@@ -1132,7 +1132,7 @@
 
     if (dwRet != IDOK)  {
         /* if failure, cleanup and return failure */
-        GlobalFree(pDevMode);
+        GlobalFree(*pDevMode);
         *pDevMode = NULL;
         return FALSE;
     }