diff options
-rw-r--r-- | navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c | 1 | ||||
-rw-r--r-- | navit/graphics/sdl/graphics_sdl.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c index 51b5a7fe..c125d344 100644 --- a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c +++ b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c @@ -584,6 +584,7 @@ get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *t FT_Load_Glyph(font->face, glyph_index, FT_LOAD_DEFAULT ); FT_Get_Glyph(font->face->glyph, &glyph); FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_pixels, &glyph_bbox ); + FT_Done_Glyph(glyph); glyph_bbox.xMin += x >> 6; glyph_bbox.xMax += x >> 6; glyph_bbox.yMin += y >> 6; diff --git a/navit/graphics/sdl/graphics_sdl.c b/navit/graphics/sdl/graphics_sdl.c index f5396c16..c90c812c 100644 --- a/navit/graphics/sdl/graphics_sdl.c +++ b/navit/graphics/sdl/graphics_sdl.c @@ -370,6 +370,7 @@ get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *t FT_Load_Glyph(font->face, glyph_index, FT_LOAD_DEFAULT ); FT_Get_Glyph(font->face->glyph, &glyph); FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_pixels, &glyph_bbox ); + FT_Done_Glyph(glyph); glyph_bbox.xMin += x >> 6; glyph_bbox.xMax += x >> 6; glyph_bbox.yMin += y >> 6; |