提交 293f622e 编写于 作者: S serb

8180015: Cleaner AWT robot handling

Reviewed-by: prr, mschoene, rhalade
上级 02874bd4
...@@ -278,7 +278,7 @@ void AwtRobot::GetRGBPixels(jint x, jint y, jint width, jint height, jintArray p ...@@ -278,7 +278,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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册