mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user