GDK W32: Fix a missing weak referencing

The changes in a82d67bb7d 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.
This commit is contained in:
Руслан Ижбулатов
2018-04-11 16:39:34 +00:00
parent 8fa2db35f8
commit 20f12f9ed7

View File

@@ -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;