mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user