diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangowin32.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c index 0a90182f..12b4a36e 100644 --- a/pango/pangowin32.c +++ b/pango/pangowin32.c @@ -820,10 +820,7 @@ pango_win32_font_finalize (GObject *object) PangoWin32FontCache *cache = pango_win32_font_map_get_font_cache (win32font->fontmap); PangoWin32Font *fontmap; - if (G_UNLIKELY (!cache)) - return; - - if (win32font->hfont != NULL) + if (cache != NULL && win32font->hfont != NULL) pango_win32_font_cache_unload (cache, win32font->hfont); g_slist_foreach (win32font->metrics_by_lang, (GFunc)free_metrics_info, NULL); |