After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 128559 - GDI object leak in gdk_window_set_icon
GDI object leak in gdk_window_set_icon
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.2.x
Other Windows
: Normal normal
: ---
Assigned To: Tor Lillqvist
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-12-05 00:01 UTC by Tim Evans
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch against gtk+-2.2.4 to fix this bug (911 bytes, patch)
2003-12-05 00:01 UTC, Tim Evans
none Details | Review

Description Tim Evans 2003-12-05 00:01:08 UTC
I found a bug in gdk_window_set_icon that was causing it to leak an HICON.
The current codes stores the return value of the WM_SETICON message (which
is the old icon) in impl->hicon, but it should be storing the new icon
there instead and ignoring the return value. I will attach a patch.
Comment 1 Tim Evans 2003-12-05 00:01:29 UTC
Created attachment 22121 [details] [review]
Patch against gtk+-2.2.4 to fix this bug
Comment 2 Tor Lillqvist 2003-12-07 11:03:32 UTC
Patch applied to gtk-2-2 and HEAD.