# HG changeset patch # User prr # Date 1295031959 28800 # Node ID 4d5f799d37342dd8965846cc164e369f265e0d88 # Parent 0f8cd2f2e564236f1f780b0314cffe830cc53cb1 6951086: Excessive Local References in sun.font.SunLayoutEngine.nativeLayout Reviewed-by: igor, jgodinez diff -r 0f8cd2f2e564 -r 4d5f799d3734 jdk/src/share/native/sun/font/FontInstanceAdapter.cpp --- a/jdk/src/share/native/sun/font/FontInstanceAdapter.cpp Thu Jan 13 14:11:56 2011 -0800 +++ b/jdk/src/share/native/sun/font/FontInstanceAdapter.cpp Fri Jan 14 11:05:59 2011 -0800 @@ -224,6 +224,7 @@ if (pt != NULL) { advance.fX = env->GetFloatField(pt, sunFontIDs.xFID); advance.fY = env->GetFloatField(pt, sunFontIDs.yFID); + env->DeleteLocalRef(pt); } }