summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-11-13 10:02:16 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-11-13 10:02:16 +1000
commitfb56f6d7a5139445a36b3468ef7dc61d1c127335 (patch)
treeebda9bf072afcd83fbf3cde739678aa0caae3a42
parentc8861d2a2fd9ef875501a05b8c894045ce96ecc6 (diff)
Set the device to NULL after unref
No real effect in the current code, but it adds a bit of safety. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86libinput.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 95e2d20..1ef6c6b 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -631,6 +631,7 @@ xf86libinput_init(DeviceIntPtr dev)
/* unref the device now, because we'll get a new ref during
DEVICE_ON */
libinput_device_unref(device);
+ driver_data->device = NULL;
return 0;
}