[Libreoffice-commits] core.git: vcl/quartz

Julien Nabet serval2412 at yahoo.fr
Mon Aug 7 17:47:18 UTC 2017


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

New commits:
commit bc5bd201609ae197f320823880e66187ae94c98a
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>

diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index b1d393876e16..edd38fa4559b 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -300,6 +300,8 @@ static bool AddTempDevFont(const OUString& rFontFileURL)
     {
         CFRelease(error);
     }
+    CFRelease(rFontPath);
+    CFRelease(rFontURL);
 
     return success;
 }


More information about the Libreoffice-commits mailing list