[PATCH 4/8] Don't leak undo buffer
Nikolay Sivov
bunglehead at gmail.com
Tue Oct 20 12:56:23 CDT 2009
---
dlls/user32/edit.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 8ad945b..437862b 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -4714,7 +4714,8 @@ static LRESULT EDIT_WM_Destroy(EDITSTATE *es)
pc = pp;
}
- SetWindowLongPtrW( es->hwndSelf, 0, 0 );
+ SetWindowLongPtrW( es->hwndSelf, 0, 0 );
+ HeapFree(GetProcessHeap(), 0, es->undo_text);
HeapFree(GetProcessHeap(), 0, es);
return 0;
--
1.5.6.5
--=-VJSaTLUsayjRiVfx1l4I--
More information about the wine-patches
mailing list