提交 2d8c6044 编写于 作者: S serb

8054801: Memory leak in jdk/src/windows/native/sun/windows/awt_InputMethod.cpp

Reviewed-by: alexsch, prr
上级 6eecc96e
...@@ -482,6 +482,7 @@ JNIEXPORT jobjectArray JNICALL Java_sun_awt_windows_WInputMethodDescriptor_getNa ...@@ -482,6 +482,7 @@ JNIEXPORT jobjectArray JNICALL Java_sun_awt_windows_WInputMethodDescriptor_getNa
for (current = 0; current < destIndex; current++) { for (current = 0; current < destIndex; current++) {
if (strcmp(javaLocaleNames[current], srcLocaleName) == 0) { if (strcmp(javaLocaleNames[current], srcLocaleName) == 0) {
// duplicated. ignore this HKL // duplicated. ignore this HKL
free((void *)srcLocaleName);
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册