user32/edit: Don't leak undo buffer.
This commit is contained in:
parent
e98687f425
commit
a60966068b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue