Nikolay Sivov : user32/edit: Don't leak undo buffer.
Alexandre Julliard
julliard at winehq.org
Wed Oct 21 13:14:04 CDT 2009
Module: wine
Branch: master
Commit: a60966068bcd9d7e131e741e5a13b7e4fbccedb8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a60966068bcd9d7e131e741e5a13b7e4fbccedb8
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue Oct 20 21:56:23 2009 +0400
user32/edit: Don't leak undo buffer.
---
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;
More information about the wine-cvs
mailing list