changeset 48565:1fc3a5f9791f

8180015: Cleaner AWT robot handling Reviewed-by: prr, mschoene, rhalade
author serb
date Thu, 01 Jun 2017 15:15:26 -0700
parents d3d2db0f234f
children 871b8bb201ea
files src/java.desktop/windows/native/libawt/windows/awt_Robot.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);