8175513: JNI exception pending in awt_GraphicsEnv.c:2021

Reviewed-by: serb, alexsch
This commit is contained in:
Vadim Pakhnushev 2017-03-02 20:24:12 +03:00
parent d1847bd612
commit 502d959a2d

View File

@ -2021,10 +2021,14 @@ Java_sun_awt_X11GraphicsDevice_enumDisplayModes
X11GD_AddDisplayMode(env, arrayList,
mode->width, mode->height,
BIT_DEPTH_MULTI, (int)(rate +.2));
if ((*env)->ExceptionCheck(env)) {
goto ret0;
}
break;
}
}
}
ret0:
awt_XRRFreeOutputInfo(output_info);
}
}
@ -2052,12 +2056,12 @@ Java_sun_awt_X11GraphicsDevice_enumDisplayModes
BIT_DEPTH_MULTI,
rates[j]);
if ((*env)->ExceptionCheck(env)) {
break;
goto ret1;
}
}
}
}
ret1:
awt_XRRFreeScreenConfigInfo(config);
}
}