xfree86: Take second reference for SavedCursor in xf86CursorSetCursor
The same pointer is kept in CurrentCursor as well, therefore two RefCursor calls are needed. Fixes use-after-free after switching VTs. Closes: #1067 (cherry picked from commit 919f1f46)
Showing
Please register or sign in to comment