http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36400df
)
fix release memory from wndPtr-> fields (compared with original wine)
author
Vitaly Lipatov
<lav@etersoft.ru>
Wed, 29 Dec 2010 15:09:56 +0000
(18:09 +0300)
committer
Vitaly Lipatov
<lav@etersoft.ru>
Wed, 29 Dec 2010 15:10:41 +0000
(18:10 +0300)
dlls/user32/win.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/user32/win.c
b/dlls/user32/win.c
index ff5da406e904682c130eb18bf5ce55e51bb9a4db..6c8d8a455c8a153868c3a3bc21de479d4830efb4 100644
(file)
--- a/
dlls/user32/win.c
+++ b/
dlls/user32/win.c
@@
-837,6
+837,10
@@
LRESULT WIN_DestroyWindow( HWND hwnd )
free_dce( wndPtr->dce, hwnd );
wndPtr->dce = NULL;
icon_title = wndPtr->icon_title;
+ HeapFree( GetProcessHeap(), 0, wndPtr->text );
+ wndPtr->text = NULL;
+ HeapFree( GetProcessHeap(), 0, wndPtr->pScroll );
+ wndPtr->pScroll = NULL;
WIN_ReleasePtr( wndPtr );
if (icon_title) DestroyWindow( icon_title );