From 03d32fe7a718d9016053cdb5d57f51a74ef99b59 Mon Sep 17 00:00:00 2001 From: Chase Douglas Date: Mon, 13 Feb 2012 12:09:32 -0800 Subject: [PATCH] Don't dereference a touch after it has been ended when punting to next owner In this case, we have ended the touch because the last owner has rejected it. We need to return from the function right now so we don't attempt to dereference another touch client for early acceptance processing. Signed-off-by: Chase Douglas Reviewed-by: Chase Douglas Signed-off-by: Peter Hutterer --- Xi/exevents.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Xi/exevents.c b/Xi/exevents.c index de7d50a3a..816dfa7e9 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -1164,6 +1164,7 @@ TouchPuntToNextOwner(DeviceIntPtr dev, TouchPointInfoPtr ti, { EmitTouchEnd(dev, ti, 0, 0); TouchEndTouch(dev, ti); + return; } if (ti->listeners[0].state == LISTENER_EARLY_ACCEPT)