user32: Free the uniscribe data before freeing the linedefs.

This commit is contained in:
Aric Stewart 2012-09-17 08:54:09 -05:00 committed by Alexandre Julliard
parent c0cd0d17aa
commit e603ffd19e
1 changed files with 1 additions and 1 deletions

View File

@ -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);