Aric Stewart : user32: Free the uniscribe data before freeing the linedefs.

Alexandre Julliard julliard at winehq.org
Mon Sep 17 14:06:35 CDT 2012


Module: wine
Branch: master
Commit: e603ffd19eb33619c0f0ba7d41c21f3de0c0eefb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e603ffd19eb33619c0f0ba7d41c21f3de0c0eefb

Author: Aric Stewart <aric at codeweavers.com>
Date:   Mon Sep 17 08:54:09 2012 -0500

user32: Free the uniscribe data before freeing the linedefs.

---

 dlls/user32/edit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 278aa38..f5d4e65 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -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);




More information about the wine-cvs mailing list