Explorar o código

Fix build error when FreeType is disabled

Haoyu Qiu %!s(int64=3) %!d(string=hai) anos
pai
achega
ffcb2a4702
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      modules/text_server_adv/text_server_adv.cpp

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