From 53bf7b71c6dd1502f13c68d3a58a5aeeee9ba8a2 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 26 Aug 2023 11:34:47 -0400 Subject: [PATCH] Don't call FcInitLoadConfigAndFonts after FcInit() already happened We are only the default global FcConfig created by calling FcInitLoadConfigAndFonts inside FcInit(). Calling FcInitLoadConfigAndFonts does nothing but creating another FcConfig option that never gets disposed or used because we use the FcConfig functions with null --- common/font/fontconfig.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/common/font/fontconfig.cpp b/common/font/fontconfig.cpp index ceb6bc2a43..3fc02e8cb7 100644 --- a/common/font/fontconfig.cpp +++ b/common/font/fontconfig.cpp @@ -47,7 +47,6 @@ wxString FONTCONFIG::Version() FONTCONFIG::FONTCONFIG() { - (void) FcInitLoadConfigAndFonts(); };