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

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jul 1 09:06:25 CDT 2015


Module: wine
Branch: master
Commit: 7a3c9889e38ede659230a66a167b82c024f0dc85
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7a3c9889e38ede659230a66a167b82c024f0dc85

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Jul  1 10:48:56 2015 +0100

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 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; */




More information about the wine-cvs mailing list