From 00b39e4a82401f407a2df2e2e35a18ede88b41ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 17 Oct 2015 07:59:37 +0000 Subject: [PATCH] W32: Add missing reference taking in gdk_device_virtual_grab() https://bugzilla.gnome.org/show_bug.cgi?id=756160 --- gdk/win32/gdkdevice-virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/win32/gdkdevice-virtual.c b/gdk/win32/gdkdevice-virtual.c index 2ed341f106..3a972855db 100644 --- a/gdk/win32/gdkdevice-virtual.c +++ b/gdk/win32/gdkdevice-virtual.c @@ -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);