W32: Add missing reference taking in gdk_device_virtual_grab()

https://bugzilla.gnome.org/show_bug.cgi?id=756160
This commit is contained in:
Руслан Ижбулатов 2015-10-17 07:59:37 +00:00
parent a397324d19
commit 00b39e4a82

View File

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