[PATCH 8/8] Release scroll window data on window destruction

Nikolay Sivov bunglehead at gmail.com
Tue Oct 20 12:58:12 CDT 2009


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

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 333b6b6..3e6dc37 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -769,6 +769,8 @@ LRESULT WIN_DestroyWindow( HWND hwnd )
     free_dce( wndPtr->dce, hwnd );
     wndPtr->dce = NULL;
     icon_title = wndPtr->icon_title;
+    HeapFree(GetProcessHeap(), 0, wndPtr->pScroll);
+    wndPtr->pScroll = NULL;
     WIN_ReleasePtr( wndPtr );
 
     if (icon_title) DestroyWindow( icon_title );
-- 
1.5.6.5


--=-j/bfPj51SB3bTQO+n8s1--




More information about the wine-patches mailing list