1 From 832d940d28f506e2adcc9b678a315edbaec9d353 Mon Sep 17 00:00:00 2001
2 From: Chase Douglas <chase.douglas@ubuntu.com>
3 Date: Mon, 13 Feb 2012 11:55:57 -0800
4 Subject: [PATCH] Don't dereference a touch after it has been ended when
5 punting to next owner
7 In this case, we have ended the touch because the last owner has
8 rejected it. We need to return from the function right now so we don't
9 attempt to dereference another touch client for early acceptance
10 processing.
12 Signed-off-by: Chase Douglas <chase.douglas@ubuntu.com>
13 ---
14 Xi/exevents.c | 1 +
15 1 files changed, 1 insertions(+), 0 deletions(-)
17 diff --git a/Xi/exevents.c b/Xi/exevents.c
18 index 1ecc3ba..9bc8dfb 100644
19 --- a/Xi/exevents.c
20 +++ b/Xi/exevents.c
21 @@ -1164,6 +1164,7 @@ TouchPuntToNextOwner(DeviceIntPtr dev, TouchPointInfoPtr ti,
22 {
23 EmitTouchEnd(dev, ti, 0, 0);
24 TouchEndTouch(dev, ti);
25 + return;
26 }
28 if (ti->listeners[0].state == LISTENER_EARLY_ACCEPT)
29 --
30 1.7.9