Commit e603ffd1 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

user32: Free the uniscribe data before freeing the linedefs.

parent c0cd0d17
......@@ -4593,6 +4593,7 @@ static LRESULT EDIT_WM_NCDestroy(EDITSTATE *es)
if (es->hloc32A) {
LocalFree(es->hloc32A);
}
EDIT_InvalidateUniscribeData(es);
pc = es->first_line_def;
while (pc)
{
......@@ -4601,7 +4602,6 @@ static LRESULT EDIT_WM_NCDestroy(EDITSTATE *es)
pc = pp;
}
EDIT_InvalidateUniscribeData(es);
SetWindowLongPtrW( es->hwndSelf, 0, 0 );
HeapFree(GetProcessHeap(), 0, es->undo_text);
HeapFree(GetProcessHeap(), 0, es);
......
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