From 0db6ee9347a5fa5cab999298c8631bc71e8b5dee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 16 Jun 2018 18:26:29 +0000 Subject: 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. --- gdk/win32/gdksurface-win32.c | 2 -- 1 file changed, 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, -- cgit v1.2.1