Commit 1b966267 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Free window text to prevent leak in case when WM_NCDESTROY doesn't get…

user32: Free window text to prevent leak in case when WM_NCDESTROY doesn't get to default procedure.
parent a8f587e8
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment