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

Julien Nabet serval2412 at yahoo.fr
Thu Aug 10 13:04:22 UTC 2017


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

New commits:
commit ec60beaf9e73beccf348726d0be4e28f35abe38a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   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 <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>
    (cherry picked from commit bc5bd201609ae197f320823880e66187ae94c98a)
    Reviewed-on: https://gerrit.libreoffice.org/40847
    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 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;
 }


More information about the Libreoffice-commits mailing list