mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-25 15:20:48 +01:00
dix: only free the old cursor if the grab was successful.
Testcase: start thunderbird and move a message around, crashes after two or three moves. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3d30789a05
commit
08cd846000
1 changed files with 1 additions and 1 deletions
|
|
@ -4446,7 +4446,7 @@ ProcGrabPointer(ClientPtr client)
|
|||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
if (oldCursor)
|
||||
if (oldCursor && rep.status == GrabSuccess)
|
||||
FreeCursor (oldCursor, (Cursor)0);
|
||||
|
||||
time = ClientTimeToServerTime(stuff->time);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue