diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-06-02 22:46:50 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-06-02 22:46:50 +0800 |
commit | ffcb2a47024aa6fe52d4f3b34f93928f3751538e (patch) | |
tree | 16cfceef0ec88c21c248afee1f4e3ad2f2e58158 /modules | |
parent | 8e3084cc91cf9a65f39b81b1187497c82614afe0 (diff) |
Fix build error when FreeType is disabled
Diffstat (limited to 'modules')
-rw-r--r-- | modules/text_server_adv/text_server_adv.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp index 0f45855a76..598ccd1238 100644 --- a/modules/text_server_adv/text_server_adv.cpp +++ b/modules/text_server_adv/text_server_adv.cpp @@ -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(); } |