Don't keep a pointer to a possibly freed cursor when changing screens, preventing a crash in xf86CursorEnableDisableFBAccess() trying to restore it.

Signed-off-by: Pierre-Loup A. Griffais <pgriffais@nvidia.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Pierre-Loup A. Griffais 2010-04-02 12:48:21 -07:00 committed by Peter Hutterer
parent a7698a6776
commit 6b09f66d8c
1 changed files with 1 additions and 0 deletions

View File

@ -312,6 +312,7 @@ xf86CursorSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCurs,
xf86SetCursor(pScreen, NullCursor, x, y);
ScreenPriv->isUp = FALSE;
}
ScreenPriv->CurrentCursor = NullCursor;
return;
}