From 7a3c9889e38ede659230a66a167b82c024f0dc85 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Wed, 1 Jul 2015 10:48:56 +0100 Subject: [PATCH] riched20: Free the script cache when updating the default style. --- dlls/riched20/run.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index 38d027003fb..d76737a96b7 100644 --- a/dlls/riched20/run.c +++ b/dlls/riched20/run.c @@ -776,6 +776,7 @@ void ME_SetDefaultCharFormat(ME_TextEditor *editor, CHARFORMAT2W *mod) style = ME_ApplyStyle(editor->pBuffer->pDefaultStyle, mod); editor->pBuffer->pDefaultStyle->fmt = style->fmt; editor->pBuffer->pDefaultStyle->tm = style->tm; + ScriptFreeCache( &editor->pBuffer->pDefaultStyle->script_cache ); ME_ReleaseStyle(style); ME_MarkAllForWrapping(editor); /* pcf = editor->pBuffer->pDefaultStyle->fmt; */