Fixed another X server crash caused by forgetting to remove

the timer callback in the DeviceOff() function.
This commit is contained in:
Peter Osterlund
2004-07-27 00:49:11 +02:00
parent a7a994b49a
commit c30e4b8d45

View File

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