Mercurial > hg > openjdk > jdk6 > jdk
changeset 1746:7f634eb9f23a
8180015: Cleaner AWT robot handling
Reviewed-by: prr, mschoene, rhalade
author | serb |
---|---|
date | Thu, 01 Jun 2017 15:15:26 -0700 |
parents | 5fdef68dca35 |
children | e0984c6e47d9 |
files | src/windows/native/sun/windows/awt_Robot.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Robot.cpp Wed May 17 15:01:31 2017 -0700 +++ b/src/windows/native/sun/windows/awt_Robot.cpp Thu Jun 01 15:15:26 2017 -0700 @@ -254,7 +254,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);