6951086: Excessive Local References in sun.font.SunLayoutEngine.nativeLayout

Reviewed-by: igor, jgodinez
This commit is contained in:
Phil Race 2011-01-14 11:05:59 -08:00
parent c1bf12c7a1
commit 06c1663385

View File

@ -224,6 +224,7 @@ void FontInstanceAdapter::getWideGlyphAdvance(le_uint32 glyph, LEPoint &advance)
if (pt != NULL) {
advance.fX = env->GetFloatField(pt, sunFontIDs.xFID);
advance.fY = env->GetFloatField(pt, sunFontIDs.yFID);
env->DeleteLocalRef(pt);
}
}