mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
W32: Add missing reference taking in gdk_device_virtual_grab()
https://bugzilla.gnome.org/show_bug.cgi?id=756160
This commit is contained in:
parent
a397324d19
commit
00b39e4a82
@ -269,7 +269,7 @@ gdk_device_virtual_grab (GdkDevice *device,
|
||||
g_clear_object (&_gdk_win32_grab_cursor);
|
||||
}
|
||||
|
||||
_gdk_win32_grab_cursor = cursor;
|
||||
_gdk_win32_grab_cursor = (cursor == NULL) ? NULL : g_object_ref (cursor);
|
||||
|
||||
if (_gdk_win32_grab_cursor != NULL)
|
||||
SetCursor (GDK_WIN32_CURSOR (_gdk_win32_grab_cursor)->hcursor);
|
||||
|
Loading…
Reference in New Issue
Block a user