changeset 3347:987aeabbfda3

6951086: Excessive Local References in sun.font.SunLayoutEngine.nativeLayout Reviewed-by: igor, jgodinez
author prr
date Fri, 14 Jan 2011 11:05:59 -0800
parents 9f3f38c150b5
children 646c3cf1ba37
files src/share/native/sun/font/FontInstanceAdapter.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/font/FontInstanceAdapter.cpp	Thu Jan 13 14:11:56 2011 -0800
+++ b/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);
     }
 }