< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_PrintControl.cpp

Print this page
rev 15133 : 8161923: Fix two memory issues.

@@ -1130,11 +1130,11 @@
 
     RESTORE_CONTROLWORD
 
     if (dwRet != IDOK)  {
         /* if failure, cleanup and return failure */
-        GlobalFree(pDevMode);
+        GlobalFree(*pDevMode);
         *pDevMode = NULL;
         return FALSE;
     }
 
     return TRUE;
< prev index next >