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

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 14 06:22:36 CDT 2015


Module: wine
Branch: master
Commit: 2a94355c910431749acc34f7065cdbd5823bd51a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2a94355c910431749acc34f7065cdbd5823bd51a

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Thu May 14 01:37:55 2015 -0600

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

---

 dlls/user32/class.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/user32/class.c b/dlls/user32/class.c
index 2c94367..bc1e623 100644
--- a/dlls/user32/class.c
+++ b/dlls/user32/class.c
@@ -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();




More information about the wine-cvs mailing list