8058858: JRE 8u20 crashes while using Japanese IM on Windows
authorserb
Tue, 23 Sep 2014 16:05:05 +0400
changeset 27050 e0bbc2e0ae2d
parent 27049 083369e8f426
child 27051 1d67c856f347
8058858: JRE 8u20 crashes while using Japanese IM on Windows Reviewed-by: azvegint, alexsch
jdk/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp
--- 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]);