[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - vcl/quartz
vcl/quartz/salgdi.cxx |1 + 1 file changed, 1 insertion(+) New commits: commit 1756d2145e7ab70f5bb32a8343f5b1e4869bd0ee Author: Julien NabetDate: Tue Aug 8 18:55:17 2017 +0200 tdf#111497: fix leak in FindFontSubstitute with CFRelease Change-Id: I9d7de52b4a1ee102b233b982e97ecbf731b476f2 Reviewed-on: https://gerrit.libreoffice.org/40895 Reviewed-by: Julien Nabet Tested-by: Julien Nabet (cherry picked from commit 986cd454b2a39ac380b137148f944c0d5ead2631) Reviewed-on: https://gerrit.libreoffice.org/40896 Tested-by: Jenkins Reviewed-by: Christian Lohmaier diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index b81528e78577..45a4f245e17c 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -93,6 +93,7 @@ bool CoreTextGlyphFallbackSubstititution::FindFontSubstitute(FontSelectPattern& rPattern.mpFontData = pSalData->mpFontList->GetFontDataFromId(reinterpret_cast(pDesc)); CFRelease(pFallback); +CFRelease(pDesc); } CFRelease(pStr); } ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - vcl/quartz
vcl/quartz/salgdi.cxx |2 ++ 1 file changed, 2 insertions(+) New commits: commit ec60beaf9e73beccf348726d0be4e28f35abe38a Author: Julien NabetDate: Mon Aug 7 19:31:58 2017 +0200 tdf#111432: fix leaks in AddTempDevFont with CFRelease Change-Id: I11183b7fd21d2398de9e5f5854763cef96963caa Reviewed-on: https://gerrit.libreoffice.org/40845 Reviewed-by: Julien Nabet Tested-by: Julien Nabet (cherry picked from commit bc5bd201609ae197f320823880e66187ae94c98a) Reviewed-on: https://gerrit.libreoffice.org/40847 Tested-by: Jenkins Reviewed-by: Christian Lohmaier diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index da410cb44c46..b81528e78577 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -301,6 +301,8 @@ static bool AddTempDevFont(const OUString& rFontFileURL) { CFRelease(error); } +CFRelease(rFontPath); +CFRelease(rFontURL); return success; } ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits