[GX] Free GX coordinates

This commit is contained in:
Behdad Esfahbod 2016-09-09 13:08:52 -07:00
parent baa329c6a1
commit bb4d2e6ed5
1 changed files with 4 additions and 1 deletions

View File

@ -1254,7 +1254,10 @@ hb_font_destroy (hb_font_t *font)
hb_face_destroy (font->face);
hb_font_funcs_destroy (font->klass);
/* TODO: destroy variation coordinates. */
if (font->x_coords)
free (font->x_coords);
if (font->y_coords && font->y_coords != font->x_coords)
free (font->y_coords);
free (font);
}