projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa2db3
)
GDK W32: Fix a missing weak referencing
author
Руслан Ижбулатов
<lrn1986@gmail.com>
Wed, 11 Apr 2018 16:39:34 +0000
(16:39 +0000)
committer
Руслан Ижбулатов
<lrn1986@gmail.com>
Wed, 11 Apr 2018 16:39:34 +0000
(16:39 +0000)
The changes in
a82d67bb7d9290693e8d8c503e65694bb62b44ca
didn't
preserve a g_object_weak_ref() call that we need to ensure the
objects in hash map don't become stale. Fix this.
gdk/win32/gdkcursor-win32.c
patch
|
blob
|
history
diff --git
a/gdk/win32/gdkcursor-win32.c
b/gdk/win32/gdkcursor-win32.c
index 95bcb334a876e795d1ee21872db0246e5c9d3a2e..b1545a67bab264c348ce424d4842d20b0f77a7a9 100644
(file)
--- a/
gdk/win32/gdkcursor-win32.c
+++ b/
gdk/win32/gdkcursor-win32.c
@@
-1534,6
+1534,7
@@
gdk_win32_display_get_win32hcursor (GdkWin32Display *display,
if (win32hcursor != NULL)
{
+ g_object_weak_ref (G_OBJECT (cursor), gdk_win32_cursor_remove_from_cache, display);
g_hash_table_insert (win32_display->cursors, cursor, win32hcursor);
return win32hcursor;