[RICHED20] select_style(): Check font_cache too

Already upstreamed as wine-6.21-347-g177f808.

CORE-17843
This commit is contained in:
Serge Gautherie 2021-11-05 18:24:21 +01:00 committed by Thomas Faber
parent d84022d7fd
commit de33036766
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -429,7 +429,7 @@ void select_style( ME_Context *c, ME_Style *s )
c->orig_font = NULL;
}
if (c->current_style)
if (c->current_style && c->current_style->font_cache)
{
release_font_cache( c->current_style->font_cache );
c->current_style->font_cache = NULL;