8058858: JRE 8u20 crashes while using Japanese IM on Windows

Reviewed-by: azvegint, alexsch
This commit is contained in:
Sergey Bylokhov 2014-09-23 16:05:05 +04:00
parent d0992c8071
commit af478a97f4

View File

@ -3936,7 +3936,6 @@ void AwtComponent::SendInputMethodEvent(jint id, jstring text,
DASSERT(stringCls);
CHECK_NULL(stringCls);
clauseReading = env->NewObjectArray(cClause, stringCls, NULL);
env->DeleteLocalRef(stringCls);
DASSERT(clauseReading);
CHECK_NULL(clauseReading);
for (int i=0; i<cClause; i++) env->SetObjectArrayElement(clauseReading, i, rgClauseReading[i]);