diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-07-01 15:09:52 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-07-01 15:09:52 -0400 |
commit | bf4050c4928a009e4d4972ab834217fa57a16f75 (patch) | |
tree | 4d9582be977b3f257f0876548dd56ca3fa9120a4 | |
parent | b7313d68bd85bda6e2e361f6c542f181f73eb8d2 (diff) | |
download | pango-bf4050c4928a009e4d4972ab834217fa57a16f75.tar.gz |
fc: Drop a broken optimizationdrop-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.
-rw-r--r-- | pango/pangofc-fontmap.c | 3 |
1 files changed, 0 insertions, 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; } /** |