From bf4050c4928a009e4d4972ab834217fa57a16f75 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 1 Jul 2021 15:09:52 -0400 Subject: fc: Drop a broken optimization We were trying to cut short the wait for FcInit in pango_fc_font_map_set_config. But there was a thinko: while it is true that the fontmap which had set_config called on it does not need to wait for FcInit anymore, other threads fontmaps still do. Instead of making this more complicated, just drop the optimization. --- pango/pangofc-fontmap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index 473dd797..0df9de9f 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -2323,9 +2323,6 @@ pango_fc_font_map_set_config (PangoFcFontMap *fcfontmap, if (oldconfig) FcConfigDestroy (oldconfig); - - /* No need to wait anymore */ - fc_initialized = 2; } /** -- cgit v1.2.1