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 Carlos Garcia Campos
parent 01788f5edb
commit 90e85c2493

View file

@ -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
}
}