fix(pandagl): release fontconfig global caches on shutdown

FcInitLoadConfigAndFonts() leaves fontconfig global configuration and caches allocated; FcConfigDestroy() only releases the per-call config. Call FcFini() when the font library is destroyed.
This commit is contained in:
Liu
2026-11-20 00:15:26 +08:00
parent 74255f501c
commit 7404070d5e
+5
View File
@@ -916,6 +916,11 @@ static void pd_font_library_destroy_engine(void)
#ifdef PANDAGL_HAS_FREETYPE
pd_freetype_engine_destroy();
#endif
#ifdef PANDAGL_HAS_FONTCONFIG
/* FcInitLoadConfigAndFonts() also populates fontconfig's global
* caches; FcConfigDestroy() only releases the per-call config. */
FcFini();
#endif
}
void pd_font_library_init(void)