About tdf#111432 leaks memory with CFString and other MacOs stuff

Stephan Bergmann sbergman at redhat.com
Tue Aug 8 07:17:37 UTC 2017


On 08/07/2017 10:44 PM, julien2412 wrote:
> But in this same method, I wonder if it'd be ok to make "sref" (see
> https://opengrok.libreoffice.org/xref/core/sal/osl/unx/osxlocale.cxx#77)
> static in order to avoid calling n times "getProcessLocale" method (defined
> some lines above).

macosx_getLocale is only called through imp_getProcessLocale 
(sal/osl/unx/nlsupport.cxx), which is only called once from 
osl_getProcessLocale (sal/osl/unx/process_impl.cxx, controlled by the 
static g_process_locale struct).  So n <= 1 anyway.


More information about the LibreOffice mailing list