From: Руслан Ижбулатов Date: Sat, 16 Jun 2018 18:26:29 +0000 (+0000) Subject: GDK W32: don't unref window iconlist textures X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~133^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0db6ee9347a5fa5cab999298c8631bc71e8b5dee;p=gtk4.git 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. --- 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,