From bb4d2e6ed562c248fff15313a013d49e38a18789 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 9 Sep 2016 13:08:52 -0700 Subject: [PATCH] [GX] Free GX coordinates --- src/hb-font.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hb-font.cc b/src/hb-font.cc index 75c8515e..978e7dd0 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -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); } -- GitLab