GNOME Bugzilla – Bug 309464
gtkfilesystemwin32.c: DeleteObject may not be called in extract_icon.
Last modified: 2005-07-06 15:31:24 UTC
Please describe the problem: DeleteObject may not be called for objects which should be deleted in extract_icon. ii.hbmColor and ii.hbmMask are deleted when no_alpha is true. Otherwise, those are not deleted. Steps to reproduce: 1. Put an icon which has alpha channel in any folder. 2. Display its folder by gtkfilechooser. Actual results: ii.hbmColor and ii.hbmMask are not deleted. Expected results: ii.hbmColor and ii.hbmMask should be deleted by DeleteObject. Does this happen every time? In extract_icon, ii.hbmColor has alpha cannel. Other information:
Created attachment 48638 [details] [review] DeleteObject are moved to the correct position.
Fixed as part of implementing gdk_cursor_get_image(), the code in gdk_win32_icon_to_pixbuf_libgtk_only() deletes the hbmColor and hbmMask bitmaps.