On Fri, 12 Feb 2021 04:42:34 GMT, Prasanta Sadhukhan <psadhuk...@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()?

OK. I see DeleteLocalRef is called for jFontName..

-------------

PR: https://git.openjdk.java.net/jdk/pull/2532

Reply via email to