riched20: Fix a leak in the undo stack.
This commit is contained in:
parent
b7501a3b0c
commit
1e85e7c7c2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue