diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-04-23 15:46:04 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-05-10 14:32:37 +1000 |
commit | 4980bcef9973ba1f90f53028f061669ee5d2661b (patch) | |
tree | e48268b1d82be41ce52d74abac118cdc13651ef0 /dix | |
parent | ccfa0f2d5de557546815a5e4f59552e2af46b578 (diff) |
dix: freeing a null grab is a bug, complain if doing so
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/grabs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/grabs.c b/dix/grabs.c index 3b02352df..0a2111d8a 100644 --- a/dix/grabs.c +++ b/dix/grabs.c @@ -249,6 +249,8 @@ CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice, void FreeGrab(GrabPtr pGrab) { + BUG_RETURN(!pGrab); + if (pGrab->grabtype == XI2 && pGrab->type == XI_TouchBegin) TouchListenerGone(pGrab->resource); |