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