< prev index next >
src/java.desktop/share/native/libfontmanager/sunFont.c
Print this page
*** 217,227 ****
* but never placed into the glyph cache. The caller holds the
* only reference, therefore it is unnecessary to invalidate any
* accelerated glyph cache cells as we do in freeInt/LongMemory().
*/
if (ptr != 0) {
! free((void*)ptr);
}
}
/*
* Class: sun_font_StrikeCache
--- 217,227 ----
* but never placed into the glyph cache. The caller holds the
* only reference, therefore it is unnecessary to invalidate any
* accelerated glyph cache cells as we do in freeInt/LongMemory().
*/
if (ptr != 0) {
! free((void*)((intptr_t)ptr));
}
}
/*
* Class: sun_font_StrikeCache
*** 255,271 ****
int i;
if (ptrs) {
for (i=0; i< len; i++) {
if (ptrs[i] != 0) {
! GlyphInfo *ginfo = (GlyphInfo *)ptrs[i];
if (ginfo->cellInfo != NULL &&
ginfo->managed == MANAGED_GLYPH) {
// invalidate this glyph's accelerated cache cell
AccelGlyphCache_RemoveAllCellInfos(ginfo);
}
! free((void*)ginfo);
}
}
(*env)->ReleasePrimitiveArrayCritical(env, jmemArray, ptrs, JNI_ABORT);
}
if (!isNullScalerContext(jlong_to_ptr(pContext))) {
--- 255,271 ----
int i;
if (ptrs) {
for (i=0; i< len; i++) {
if (ptrs[i] != 0) {
! GlyphInfo *ginfo = (GlyphInfo *)((intptr_t)ptrs[i]);
if (ginfo->cellInfo != NULL &&
ginfo->managed == MANAGED_GLYPH) {
// invalidate this glyph's accelerated cache cell
AccelGlyphCache_RemoveAllCellInfos(ginfo);
}
! free(ginfo);
}
}
(*env)->ReleasePrimitiveArrayCritical(env, jmemArray, ptrs, JNI_ABORT);
}
if (!isNullScalerContext(jlong_to_ptr(pContext))) {
< prev index next >