user32: Free internal icon when freeing the rest of the window class.

This commit is contained in:
Alex Henrie 2015-05-14 01:37:55 -06:00 committed by Alexandre Julliard
parent f324ae7f09
commit 2a94355c91
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ static void CLASS_FreeClass( CLASS *classPtr )
list_remove( &classPtr->entry );
if (classPtr->hbrBackground > (HBRUSH)(COLOR_GRADIENTINACTIVECAPTION + 1))
DeleteObject( classPtr->hbrBackground );
DestroyIcon( classPtr->hIconSmIntern );
HeapFree( GetProcessHeap(), 0, classPtr->menuName );
HeapFree( GetProcessHeap(), 0, classPtr );
USER_Unlock();