mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 03:50:07 +01:00
dix: freeing a null grab is a bug, complain if doing so
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 4980bcef99)
This commit is contained in:
parent
2775230137
commit
479f8bf236
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue