fontconfig: Branch 'master'

[email protected] (Behdad Esfahbod)
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
 configure.ac     |    2 +-
 src/fcfreetype.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 94683a1255c065a7f8e7fadee9de605f3eaf9ac7
Author: Behdad Esfahbod <[email protected]>
Date:   Mon Jan 8 09:55:41 2018 +0000

    Use FT_Done_MM_Var if available

diff --git a/configure.ac b/configure.ac
index e80479e..391071c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -320,7 +320,7 @@ fontconfig_save_libs="$LIBS"
 fontconfig_save_cflags="$CFLAGS"
 LIBS="$LIBS $FREETYPE_LIBS"
 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
-AC_CHECK_FUNCS(FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format)
+AC_CHECK_FUNCS(FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Done_MM_Var)
 
 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
 	#include <ft2build.h>
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index 22d651d..4d076b7 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -2170,7 +2170,11 @@ skip:
     } while (!err && (!index_set || face_num == set_face_num) && face_num < num_faces);
 
 bail:
+#ifdef HAVE_FT_DONE_MM_VAR
+    FT_Done_MM_Var (ftLibrary, mm_var);
+#else
     free (mm_var);
+#endif
     FcLangSetDestroy (ls);
     FcCharSetDestroy (cs);
     if (face)
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.