[OpenJDK 2D-Dev] RFR: 8261533: Java_sun_font_CFont_getCascadeList leaks memory according to Xcode
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Fri Feb 12 04:46:40 UTC 2021
On Thu, 11 Feb 2021 18:42:30 GMT, Phil Race <prr at openjdk.org> wrote:
> The various CF*Copy* functions called here need a matching CFRelease
src/java.desktop/macosx/native/libawt_lwawt/font/AWTFont.m line 575:
> 573: #endif
> 574: jstring jFontName = (jstring)NSStringToJavaString(env, fontname);
> 575: CFRelease(fontname);
Should we call CFRelease or should we call DeleteLocalRef()?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2532
More information about the 2d-dev
mailing list