8211393: Memory leak issue on awt_InputMethod.c

Reviewed-by: naoto, clanger
This commit is contained in:
Ichiroh Takiguchi 2018-10-19 15:26:50 +01:00
parent b64e7fc2bd
commit 3ee3988bfd
2 changed files with 2 additions and 0 deletions

View File

@ -1148,6 +1148,7 @@ PreeditDrawCallback(XIC ic, XPointer client_data,
tmpstyle[cnt] = text->feedback[cnt];
(*env)->SetIntArrayRegion(env, style, 0,
text->length, (jint *)tmpstyle);
free(tmpstyle);
}
}
}

View File

@ -1123,6 +1123,7 @@ PreeditDrawCallback(XIC ic, XPointer client_data,
tmpstyle[cnt] = text->feedback[cnt];
(*env)->SetIntArrayRegion(env, style, 0,
text->length, (jint *)tmpstyle);
free(tmpstyle);
}
}
}