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

This commit is contained in:
Huw Davies 2015-07-01 10:48:56 +01:00 committed by Alexandre Julliard
parent bd24842eba
commit 7a3c9889e3
1 changed files with 1 additions and 0 deletions

View File

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