Fix build error when FreeType is disabled
This commit is contained in:
parent
8e3084cc91
commit
ffcb2a4702
|
@ -5640,8 +5640,10 @@ TextServerAdvanced::TextServerAdvanced() {
|
||||||
|
|
||||||
TextServerAdvanced::~TextServerAdvanced() {
|
TextServerAdvanced::~TextServerAdvanced() {
|
||||||
_bmp_free_font_funcs();
|
_bmp_free_font_funcs();
|
||||||
|
#ifdef MODULE_FREETYPE_ENABLED
|
||||||
if (ft_library != nullptr) {
|
if (ft_library != nullptr) {
|
||||||
FT_Done_FreeType(ft_library);
|
FT_Done_FreeType(ft_library);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
u_cleanup();
|
u_cleanup();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue