summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2018-11-19 12:33:07 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2018-11-19 12:35:33 +0100
commit90e85c2493fdfa3551f202ff10282463f1e36645 (patch)
tree6836f20b174c12c1b9c417bb9eeca45303f47694
parent01788f5edbab01ff7148af288faf87df7373ed2a (diff)
ft: Use FT_Done_MM_Var instead of free when available in cairo_ft_apply_variations
Fixes a crash when using freetype >= 2.9
-rw-r--r--src/cairo-ft-font.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c
index 325dd61b4..981973f78 100644
--- a/src/cairo-ft-font.c
+++ b/src/cairo-ft-font.c
@@ -2393,7 +2393,11 @@ skip:
done:
free (coords);
free (current_coords);
+#if HAVE_FT_DONE_MM_VAR
+ FT_Done_MM_Var (face->glyph->library, ft_mm_var);
+#else
free (ft_mm_var);
+#endif
}
}