user32/edit: Don't leak undo buffer.

This commit is contained in:
Nikolay Sivov 2009-10-20 21:56:23 +04:00 committed by Alexandre Julliard
parent e98687f425
commit a60966068b
1 changed files with 2 additions and 1 deletions

View File

@ -4714,7 +4714,8 @@ static LRESULT EDIT_WM_Destroy(EDITSTATE *es)
pc = pp; pc = pp;
} }
SetWindowLongPtrW( es->hwndSelf, 0, 0 ); SetWindowLongPtrW( es->hwndSelf, 0, 0 );
HeapFree(GetProcessHeap(), 0, es->undo_text);
HeapFree(GetProcessHeap(), 0, es); HeapFree(GetProcessHeap(), 0, es);
return 0; return 0;