diff src/windows/native/sun/java2d/windows/GDIRenderer.cpp @ 7441:cf14f699f36c

8009071: Improve shape handling Reviewed-by: art, mschoene
author anthony
date Thu, 18 Apr 2013 13:52:38 +0100
parents 5d7e49a3a2f9
children bedc29a6d074
line wrap: on
line diff
--- a/src/windows/native/sun/java2d/windows/GDIRenderer.cpp	Tue Apr 16 21:19:02 2013 +0400
+++ b/src/windows/native/sun/java2d/windows/GDIRenderer.cpp	Thu Apr 18 13:52:38 2013 +0100
@@ -84,7 +84,7 @@
         *pNpoints = outpoints;
     }
     if (outpoints > POLYTEMPSIZE) {
-        pPoints = (POINT *) safe_Malloc(sizeof(POINT) * outpoints);
+        pPoints = (POINT *) SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(POINT), outpoints);
     }
     BOOL isempty = fixend;
     for (int i = 0; i < npoints; i++) {