summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2018-06-16 18:26:29 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2018-06-16 18:26:29 +0000
commit0db6ee9347a5fa5cab999298c8631bc71e8b5dee (patch)
tree5887b6c3ff6edcc86d4d1c7c10f2b9ba77a271cc
parent8a1106c6394805bfdd6d5a7e39d2f37a40959d61 (diff)
downloadgtk+-lrn/misc-gtk4-fixes.tar.gz
GDK W32: don't unref window iconlist textureslrn/misc-gtk4-fixes
We do not own these textures, nor do we ref them, so it's inappropriate to unref them.
-rw-r--r--gdk/win32/gdksurface-win32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c
index ce10a17055..932ca4a663 100644
--- a/gdk/win32/gdksurface-win32.c
+++ b/gdk/win32/gdksurface-win32.c
@@ -2158,9 +2158,7 @@ gdk_win32_surface_set_icon_list (GdkSurface *window,
/* Create the icons */
big_hicon = _gdk_win32_texture_to_hicon (big_texture);
- g_object_unref (big_texture);
small_hicon = _gdk_win32_texture_to_hicon (small_texture);
- g_object_unref (small_texture);
/* Set the icons */
SendMessageW (GDK_SURFACE_HWND (window), WM_SETICON, ICON_BIG,