user32/win: Release scroll window data on window destruction.

This commit is contained in:
Nikolay Sivov 2009-10-20 21:58:12 +04:00 committed by Alexandre Julliard
parent ebea81f131
commit 77fe22b226
1 changed files with 2 additions and 0 deletions

View File

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