projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a1106c
)
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
patch
|
blob
|
history
diff --git
a/gdk/win32/gdksurface-win32.c
b/gdk/win32/gdksurface-win32.c
index ce10a17055938fbe90c25091679984d0deead680..932ca4a66389d377a236d7f7d6fca11e175605f5 100644
(file)
--- 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,