fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

New commits:
commit e2f9f28aed1470a07c33a57940d68b6a3cbe235b
Author: Akira TAGOH <akira@xxxxxxxxx>
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;
 
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux