8058858: JRE 8u20 crashes while using Japanese IM on Windows
Reviewed-by: azvegint, alexsch
--- a/jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Tue Sep 23 15:52:40 2014 +0400
+++ b/jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp Tue Sep 23 16:05:05 2014 +0400
@@ -3936,7 +3936,6 @@
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]);