Nikolay Sivov : user32: Free window text to prevent leak in case when WM_NCDESTROY doesn' t get to default procedure.
Alexandre Julliard
julliard at winehq.org
Mon Nov 16 11:44:00 CST 2009
Module: wine
Branch: master
Commit: 1b96626750e8c8be17ca3c93ed23c7b29a5e8e36
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b96626750e8c8be17ca3c93ed23c7b29a5e8e36
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun Nov 15 07:45:57 2009 +0300
user32: Free window text to prevent leak in case when WM_NCDESTROY doesn't get to default procedure.
---
dlls/user32/win.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 9e42ff8..46c2388 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -769,7 +769,9 @@ LRESULT WIN_DestroyWindow( HWND hwnd )
free_dce( wndPtr->dce, hwnd );
wndPtr->dce = NULL;
icon_title = wndPtr->icon_title;
- HeapFree(GetProcessHeap(), 0, wndPtr->pScroll);
+ HeapFree( GetProcessHeap(), 0, wndPtr->text );
+ wndPtr->text = NULL;
+ HeapFree( GetProcessHeap(), 0, wndPtr->pScroll );
wndPtr->pScroll = NULL;
WIN_ReleasePtr( wndPtr );
More information about the wine-cvs
mailing list