From 469cd6dc67075fcb1bacc69cbf1354cd67aefddd Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 11 Jan 2016 19:16:38 +0000 Subject: [PATCH] Close the font when we finish with it --- amiga/font_bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amiga/font_bitmap.c b/amiga/font_bitmap.c index 90277d6e7..65d21936e 100644 --- a/amiga/font_bitmap.c +++ b/amiga/font_bitmap.c @@ -210,8 +210,6 @@ bool amiga_bm_nsfont_split(const plot_font_style_t *fstyle, *char_offset = length; } - ami_font_bm_close(bmfont); - return true; } @@ -227,6 +225,8 @@ ULONG ami_font_bm_text(struct RastPort *rp, const char *string, ULONG length, free(localtext); } + ami_font_bm_close(bmfont); + return 0; }