From 2aa4592330b188615ee96a9249b68a8a26197867 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 13 Aug 2023 17:58:10 -0700 Subject: [PATCH] SDL: Skip FcFini() call, causes crashes. Apparently this is a relatively well known problem and various people have commented this out, including in Chromium for the last 10 years... --- Common/Render/Text/draw_text_sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/Render/Text/draw_text_sdl.cpp b/Common/Render/Text/draw_text_sdl.cpp index 45279a0ebe..fcc1150ee9 100644 --- a/Common/Render/Text/draw_text_sdl.cpp +++ b/Common/Render/Text/draw_text_sdl.cpp @@ -38,7 +38,8 @@ TextDrawerSDL::~TextDrawerSDL() { #if defined(USE_SDL2_TTF_FONTCONFIG) FcConfigDestroy(config); - FcFini(); + // Don't call this - it crashes, see https://github.com/openframeworks/openFrameworks/issues/5061. + //FcFini(); #endif }