mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-30 20:00:37 +02:00
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:
parent
ee716e5e1b
commit
465ccf1286
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue