summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2020-02-14 16:58:15 +0100
committerUli Schlachter <psychon@znc.in>2020-02-14 16:58:15 +0100
commit0ae4e6a8554ce7cc13ba0f23c516ddd7622f660a (patch)
treefed154d8eb43bb41ed732d1c85456f3fe4fdfd00
parentd66baf8ecd880ec9b0e282025a77fa223299d52a (diff)
parenta68c19680e23fd916770c89abf50465f4c99d12b (diff)
Merge branch 'ft-leak' of gitlab.freedesktop.org:carlosgc/cairo
-rw-r--r--src/cairo-ft-font.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 6ae60b457..ac4908d13 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -459,6 +459,11 @@ _cairo_ft_unscaled_font_init (cairo_ft_unscaled_font_t *unscaled,
unscaled->variations = calloc (ft_mm_var->num_axis, sizeof (FT_Fixed));
if (unscaled->variations)
FT_Get_Var_Design_Coordinates (face, ft_mm_var->num_axis, unscaled->variations);
+#if HAVE_FT_DONE_MM_VAR
+ FT_Done_MM_Var (face->glyph->library, ft_mm_var);
+#else
+ free (ft_mm_var);
+#endif
}
}
#endif