From 94683a1255c065a7f8e7fadee9de605f3eaf9ac7 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 8 Jan 2018 09:55:41 +0000 Subject: Use FT_Done_MM_Var if available --- src/fcfreetype.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 22d651d1..4d076b77 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) -- cgit v1.2.3