Fix build error when FreeType is disabled

This commit is contained in:
Haoyu Qiu 2022-06-02 22:46:50 +08:00
parent 8e3084cc91
commit ffcb2a4702
1 changed files with 2 additions and 0 deletions

View File

@ -5640,8 +5640,10 @@ TextServerAdvanced::TextServerAdvanced() {
TextServerAdvanced::~TextServerAdvanced() {
_bmp_free_font_funcs();
#ifdef MODULE_FREETYPE_ENABLED
if (ft_library != nullptr) {
FT_Done_FreeType(ft_library);
}
#endif
u_cleanup();
}