riched20: Free the script cache when updating the default style.

Huw Davies huw at codeweavers.com
Wed Jul 1 04:48:56 CDT 2015


---
 dlls/riched20/run.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c
index 38d0270..d76737a 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; */
-- 
1.8.0




More information about the wine-patches mailing list