[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - vcl/quartz

Julien Nabet serval2412 at yahoo.fr
Fri Aug 11 12:29:40 UTC 2017


 vcl/quartz/salgdi.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1756d2145e7ab70f5bb32a8343f5b1e4869bd0ee
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   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 <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit 986cd454b2a39ac380b137148f944c0d5ead2631)
    Reviewed-on: https://gerrit.libreoffice.org/40896
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

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<sal_IntPtr>(pDesc));
 
             CFRelease(pFallback);
+            CFRelease(pDesc);
         }
         CFRelease(pStr);
     }


More information about the Libreoffice-commits mailing list