Close the font when we finish with it

This commit is contained in:
Chris Young 2016-01-11 19:16:38 +00:00
parent 37e5bff188
commit 469cd6dc67

View File

@ -210,8 +210,6 @@ bool amiga_bm_nsfont_split(const plot_font_style_t *fstyle,
*char_offset = length; *char_offset = length;
} }
ami_font_bm_close(bmfont);
return true; return true;
} }
@ -227,6 +225,8 @@ ULONG ami_font_bm_text(struct RastPort *rp, const char *string, ULONG length,
free(localtext); free(localtext);
} }
ami_font_bm_close(bmfont);
return 0; return 0;
} }