mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-18 22:35:12 +00:00
8211393: Memory leak issue on awt_InputMethod.c
Reviewed-by: naoto, clanger
This commit is contained in:
parent
b64e7fc2bd
commit
3ee3988bfd
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user