Merge pull request #61633 from timothyqiu/freetype-free

Fix build error when FreeType is disabled
This commit is contained in:
Rémi Verschelde 2022-06-02 18:50:04 +02:00 committed by GitHub
commit f606225608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}