About tdf#111432 leaks memory with CFString and other MacOs stuff
julien2412
serval2412 at yahoo.fr
Mon Aug 7 20:44:56 UTC 2017
Hi,
Following tdf#111432 (AddTempDevFont(const OUString& rFontFileURL) leaks
memory on invocation
https://bugs.documentfoundation.org/show_bug.cgi?id=111432, I'm searching
some similar cases.
First one I noticed is "subs" in "macosx_getLocale" method (see
https://opengrok.libreoffice.org/xref/core/sal/osl/unx/osxlocale.cxx#82)
which should be CFReleased before returning.
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).
Any thoughts?
Julien
--
View this message in context: http://nabble.documentfoundation.org/About-tdf-111432-leaks-memory-with-CFString-and-other-MacOs-stuff-tp4220037.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice
mailing list