8180015: Cleaner AWT robot handling
authorserb
Thu, 01 Jun 2017 15:15:26 -0700
changeset 48564 1fc3a5f9791f
parent 48563 d3d2db0f234f
child 48565 871b8bb201ea
8180015: Cleaner AWT robot handling Reviewed-by: prr, mschoene, rhalade
src/java.desktop/windows/native/libawt/windows/awt_Robot.cpp
--- a/src/java.desktop/windows/native/libawt/windows/awt_Robot.cpp	Wed May 17 18:22:54 2017 -0700
+++ b/src/java.desktop/windows/native/libawt/windows/awt_Robot.cpp	Thu Jun 01 15:15:26 2017 -0700
@@ -285,7 +285,7 @@
 
     // copy pixels into Java array
     env->SetIntArrayRegion(pixelArray, 0, numPixels, (jint *)pixelData);
-    delete pinfo;
+    delete[] pinfo;
 
     // free all the GDI objects we made
     ::SelectObject(hdcMem, hOldBitmap);