From 1c67e52e7e978e2cd73af0a2544b6dcc7ee8381f Mon Sep 17 00:00:00 2001 From: prr Date: Fri, 14 Jan 2011 11:05:59 -0800 Subject: [PATCH] 6951086: Excessive Local References in sun.font.SunLayoutEngine.nativeLayout Reviewed-by: igor, jgodinez --- src/share/native/sun/font/FontInstanceAdapter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/share/native/sun/font/FontInstanceAdapter.cpp b/src/share/native/sun/font/FontInstanceAdapter.cpp index 1db169a6d..952523105 100644 --- a/src/share/native/sun/font/FontInstanceAdapter.cpp +++ b/src/share/native/sun/font/FontInstanceAdapter.cpp @@ -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); } } -- GitLab