mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +00:00
Fix GDI leak in window create
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@36649 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5006663d2d
commit
09301e648c
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,9 @@
|
|||
cpath,
|
||||
IMAGE_ICON,0,0,
|
||||
LR_DEFAULTSIZE|LR_LOADFROMFILE);
|
||||
SetClassLongPtr(hwnd,GCLP_HICON,(LONG_PTR)icon);
|
||||
HICON oldIcon = SetClassLongPtr(hwnd,GCLP_HICON,(LONG_PTR)icon);
|
||||
if (oldIcon != NULL)
|
||||
DestroyIcon(oldIcon);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue