Mike McCormack : riched20: Fixed memory leaks.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Nov 6 05:48:34 CST 2006
Module: wine
Branch: master
Commit: 01e8eaefdc5d374fae4e872b847370be549b4993
URL: http://source.winehq.org/git/wine.git/?a=commit;h=01e8eaefdc5d374fae4e872b847370be549b4993
Author: Mike McCormack <mike at codeweavers.com>
Date: Sun Nov 5 14:25:42 2006 +0900
riched20: Fixed memory leaks.
---
dlls/riched20/editor.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 48eb33d..e8362f1 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1210,12 +1210,12 @@ void ME_DestroyEditor(ME_TextEditor *edi
ME_DisplayItem *pFirst = editor->pBuffer->pFirst;
ME_DisplayItem *p = pFirst, *pNext = NULL;
int i;
-
+
ME_ClearTempStyle(editor);
ME_EmptyUndoStack(editor);
while(p) {
pNext = p->next;
- ME_DestroyDisplayItem(p);
+ ME_DestroyDisplayItem(p);
p = pNext;
}
ME_ReleaseStyle(editor->pBuffer->pDefaultStyle);
@@ -1228,6 +1228,9 @@ void ME_DestroyEditor(ME_TextEditor *edi
if(editor->lpOleCallback)
IUnknown_Release(editor->lpOleCallback);
+ FREE_OBJ(editor->pBuffer);
+ FREE_OBJ(editor->pCursors);
+
FREE_OBJ(editor);
}
More information about the wine-cvs
mailing list