summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-08-08 18:55:17 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-08-11 14:28:56 +0200
commit1756d2145e7ab70f5bb32a8343f5b1e4869bd0ee (patch)
tree3bd7860a3ca70f825d72ac219d2fa4749c5747d6
parent1dfd3085ddbf3a8984c839477875de47cf99ea42 (diff)
tdf#111497: fix leak in FindFontSubstitute with CFRelease
Change-Id: I9d7de52b4a1ee102b233b982e97ecbf731b476f2 Reviewed-on: https://gerrit.libreoffice.org/40895 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 986cd454b2a39ac380b137148f944c0d5ead2631) Reviewed-on: https://gerrit.libreoffice.org/40896 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--vcl/quartz/salgdi.cxx1
1 files changed, 1 insertions, 0 deletions
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);
}