diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-11-13 10:02:16 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-11-13 10:02:16 +1000 |
commit | fb56f6d7a5139445a36b3468ef7dc61d1c127335 (patch) | |
tree | ebda9bf072afcd83fbf3cde739678aa0caae3a42 | |
parent | c8861d2a2fd9ef875501a05b8c894045ce96ecc6 (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.c | 1 |
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; } |