mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
animcur: Fix crash when removing a master device
Reproducer: $ Xvfb -ac -noreset :1 & $ DISPLAY=:1 xinput create-master touch1 $ DISPLAY=:1 xinput remove-master "touch1 pointer" Bugzilla: https://bugs.freedesktop.org/105761 Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -155,7 +155,8 @@ AnimCurTimerNotify(OsTimerPtr timer, CARD32 now, void *arg)
|
||||
static void
|
||||
AnimCurCancelTimer(DeviceIntPtr pDev)
|
||||
{
|
||||
CursorPtr cur = pDev->spriteInfo->sprite->current;
|
||||
CursorPtr cur = pDev->spriteInfo->sprite ?
|
||||
pDev->spriteInfo->sprite->current : NULL;
|
||||
|
||||
if (IsAnimCur(cur))
|
||||
TimerCancel(GetAnimCur(cur)->timer);
|
||||
|
||||
Reference in New Issue
Block a user