From c30e4b8d455d575569fc530377e2aaa88b8dcfcb Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Tue, 27 Jul 2004 00:49:11 +0200 Subject: [PATCH] Fixed another X server crash caused by forgetting to remove the timer callback in the DeviceOff() function. --- synaptics.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synaptics.c b/synaptics.c index 9a41d8f..54b26f4 100644 --- a/synaptics.c +++ b/synaptics.c @@ -515,6 +515,8 @@ DeviceOff(DeviceIntPtr dev) DBG(3, ErrorF("Synaptics DeviceOff called\n")); if (local->fd != -1) { + TimerFree(priv->timer); + priv->timer = NULL; xf86RemoveEnabledDevice(local); priv->proto_ops->DeviceOffHook(local); if (priv->comm.buffer) {