riched20: Fix a leak in the undo stack.

This commit is contained in:
Mike McCormack 2006-11-05 14:33:28 +09:00 committed by Alexandre Julliard
parent b7501a3b0c
commit 1e85e7c7c2
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ void ME_DestroyDisplayItem(ME_DisplayItem *item) {
if (item->type==diUndoSetCharFormat || item->type==diUndoSetDefaultCharFormat) {
ME_ReleaseStyle(item->member.ustyle);
}
if (item->type==diUndoSplitParagraph)
FREE_OBJ(item->member.para.pFmt);
FREE_OBJ(item);
}