diff options
Diffstat (limited to 'xorg-server/dix/events.c')
-rwxr-xr-x | xorg-server/dix/events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg-server/dix/events.c b/xorg-server/dix/events.c index a77415377..b2b770d1c 100755 --- a/xorg-server/dix/events.c +++ b/xorg-server/dix/events.c @@ -1444,7 +1444,8 @@ UpdateTouchesForGrab(DeviceIntPtr mouse) listener->type = LISTENER_POINTER_GRAB; else listener->type = LISTENER_GRAB; - FreeGrab(listener->grab); + if (listener->grab) + FreeGrab(listener->grab); listener->grab = AllocGrab(grab); } } |