From: Peter Hutterer Date: Tue, 15 Apr 2014 12:28:00 +0000 (+0200) Subject: touchpad: reset the tap timer_fd to -1 on destroy X-Git-Tag: 0.3.0~39^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae875520d1f8ae8ebf7beb98e8fcfc88bcef8c5a;p=platform%2Fupstream%2Flibinput.git touchpad: reset the tap timer_fd to -1 on destroy No real effect, just for safety Signed-off-by: Peter Hutterer Signed-off-by: Hans de Goede Reviewed-by: Jonas Ã…dahl Reviewed-by: Hans de Goede --- diff --git a/src/evdev-mt-touchpad-tap.c b/src/evdev-mt-touchpad-tap.c index 5fa712f..bcc5700 100644 --- a/src/evdev-mt-touchpad-tap.c +++ b/src/evdev-mt-touchpad-tap.c @@ -615,6 +615,8 @@ tp_destroy_tap(struct tp_dispatch *tp) libinput_remove_source(tp->device->base.seat->libinput, tp->tap.source); tp->tap.source = NULL; } - if (tp->tap.timer_fd > -1) + if (tp->tap.timer_fd > -1) { close(tp->tap.timer_fd); + tp->tap.timer_fd = -1; + } }