From de330367661338396ae896ae061ed03a20ac170e Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Fri, 5 Nov 2021 18:24:21 +0100 Subject: [PATCH] [RICHED20] select_style(): Check font_cache too Already upstreamed as wine-6.21-347-g177f808. CORE-17843 --- dll/win32/riched20/style.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/riched20/style.c b/dll/win32/riched20/style.c index 8b9c2126b1b..37c0509621f 100644 --- a/dll/win32/riched20/style.c +++ b/dll/win32/riched20/style.c @@ -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;