mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 20:35:09 +00:00
8034119: [parfait] JNI exception pending in jdk/src/macosx/native/sun/font/CCharToGlyphMapper.m
Reviewed-by: serb, jgodinez
This commit is contained in:
parent
21e9bfc83e
commit
2beb211aef
@ -101,10 +101,13 @@ JNF_COCOA_ENTER(env);
|
||||
jchar *unicodesAsChars =
|
||||
(*env)->GetPrimitiveArrayCritical(env, unicodes, NULL);
|
||||
|
||||
AllocateGlyphBuffer(env, awtFont, count, (UniChar *)unicodesAsChars, glyphs);
|
||||
if (unicodesAsChars != NULL) {
|
||||
AllocateGlyphBuffer(env, awtFont, count,
|
||||
(UniChar *)unicodesAsChars, glyphs);
|
||||
|
||||
(*env)->ReleasePrimitiveArrayCritical(env, unicodes,
|
||||
unicodesAsChars, JNI_ABORT);
|
||||
(*env)->ReleasePrimitiveArrayCritical(env, unicodes,
|
||||
unicodesAsChars, JNI_ABORT);
|
||||
}
|
||||
|
||||
JNF_COCOA_EXIT(env);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user