[Fontconfig] fontconfig: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 26 05:09:11 UTC 2019


 src/fcfreetype.c |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

New commits:
commit e2f9f28aed1470a07c33a57940d68b6a3cbe235b
Author: Akira TAGOH <akira at tagoh.org>
Date:   Fri Jul 26 04:59:54 2019 +0000

    Fix a memory leak in FcFreeTypeQuery*()
    
    Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/170

diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index bc1ab3f..28fa8ac 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -2121,9 +2121,14 @@ FcFreeTypeQueryFaceInternal (const FT_Face  face,
 	free (foundry_);
 
     if (master)
-      {
-	/* TODO: How to free master?! */
-      }
+    {
+#ifdef HAVE_FT_DONE_MM_VAR
+	if (face->glyph)
+	    FT_Done_MM_Var (face->glyph->library, master);
+#else
+	free (master);
+#endif
+    }
 
     return pat;
 


More information about the Fontconfig mailing list