Commit a6096606 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32/edit: Don't leak undo buffer.

parent e98687f4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment