mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8180015: Cleaner AWT robot handling
Reviewed-by: prr, mschoene, rhalade
This commit is contained in:
parent
e646802457
commit
3d8ce35924
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ void AwtRobot::GetRGBPixels(jint x, jint y, jint width, jint height, jintArray p
|
||||||
|
|
||||||
// copy pixels into Java array
|
// copy pixels into Java array
|
||||||
env->SetIntArrayRegion(pixelArray, 0, numPixels, (jint *)pixelData);
|
env->SetIntArrayRegion(pixelArray, 0, numPixels, (jint *)pixelData);
|
||||||
delete pinfo;
|
delete[] pinfo;
|
||||||
|
|
||||||
// free all the GDI objects we made
|
// free all the GDI objects we made
|
||||||
::SelectObject(hdcMem, hOldBitmap);
|
::SelectObject(hdcMem, hOldBitmap);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue