8161923: Fix free in awt_PrintControl.
authorgoetz
Wed, 20 Jul 2016 15:07:48 +0200
changeset 40727 e9f4bcc8dfd3
parent 40726 c403bb724166
child 40728 1ed235a29653
8161923: Fix free in awt_PrintControl. Reviewed-by: vadim
jdk/src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp
--- a/jdk/src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp	Thu Aug 25 16:01:44 2016 +0530
+++ b/jdk/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;
     }