GDK W32: don't unref window iconlist textures
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 16 Jun 2018 18:26:29 +0000 (18:26 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 16 Jun 2018 18:26:29 +0000 (18:26 +0000)
We do not own these textures, nor do we ref them, so it's inappropriate
to unref them.

gdk/win32/gdksurface-win32.c

index ce10a17055938fbe90c25091679984d0deead680..932ca4a66389d377a236d7f7d6fca11e175605f5 100644 (file)
@@ -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,