mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-21 03:32:35 +03:00
Close the font when we finish with it
This commit is contained in:
parent
37e5bff188
commit
469cd6dc67
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user