ft: Use FT_Done_MM_Var instead of free when available in cairo_ft_apply_variations

Fixes a crash when using freetype >= 2.9
This commit is contained in:
Carlos Garcia Campos 2018-11-19 12:33:07 +01:00 committed by Federico Mena Quintero
parent ee716e5e1b
commit 465ccf1286

View file

@ -2399,7 +2399,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
}
}