8180015: Cleaner AWT robot handling

Reviewed-by: prr, mschoene, rhalade
This commit is contained in:
Sergey Bylokhov 2017-06-01 15:15:26 -07:00
parent e646802457
commit 3d8ce35924

View File

@ -285,7 +285,7 @@ void AwtRobot::GetRGBPixels(jint x, jint y, jint width, jint height, jintArray p
// 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);