8180015: Cleaner AWT robot handling
Reviewed-by: prr, mschoene, rhalade
This commit is contained in:
parent
e646802457
commit
3d8ce35924
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user