Module: wine Branch: master Commit: 1e85e7c7c20d1f93ef610e45b29bd24ef621e5d9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1e85e7c7c20d1f93ef610e45b2...
Author: Mike McCormack mike@codeweavers.com Date: Sun Nov 5 14:33:28 2006 +0900
riched20: Fix a leak in the undo stack.
---
dlls/riched20/list.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/list.c b/dlls/riched20/list.c index db46308..ad7b4b6 100644 --- a/dlls/riched20/list.c +++ b/dlls/riched20/list.c @@ -121,6 +121,8 @@ void ME_DestroyDisplayItem(ME_DisplayIte 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); }