mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 16:30:15 +00:00
GDK W32: don't unref window iconlist textures
We do not own these textures, nor do we ref them, so it's inappropriate to unref them.
This commit is contained in:
parent
8a1106c639
commit
0db6ee9347
@ -2158,9 +2158,7 @@ gdk_win32_surface_set_icon_list (GdkSurface *window,
|
|||||||
|
|
||||||
/* Create the icons */
|
/* Create the icons */
|
||||||
big_hicon = _gdk_win32_texture_to_hicon (big_texture);
|
big_hicon = _gdk_win32_texture_to_hicon (big_texture);
|
||||||
g_object_unref (big_texture);
|
|
||||||
small_hicon = _gdk_win32_texture_to_hicon (small_texture);
|
small_hicon = _gdk_win32_texture_to_hicon (small_texture);
|
||||||
g_object_unref (small_texture);
|
|
||||||
|
|
||||||
/* Set the icons */
|
/* Set the icons */
|
||||||
SendMessageW (GDK_SURFACE_HWND (window), WM_SETICON, ICON_BIG,
|
SendMessageW (GDK_SURFACE_HWND (window), WM_SETICON, ICON_BIG,
|
||||||
|
Loading…
Reference in New Issue
Block a user