OpenJDK / jdk / jdk
changeset 7936:4d5f799d3734
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 | 0f8cd2f2e564 |
children | 3de0a7f48b19 |
files | jdk/src/share/native/sun/font/FontInstanceAdapter.cpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }