mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
mi: Bugfix: FreeCursor ignores negative refcounts.
mieq: Bugfix: Motion notifies did overwrite DeviceMotionNotifies
This commit is contained in:
committed by
Peter Hutterer
parent
85ea408e38
commit
e88bc0e55a
@@ -117,7 +117,10 @@ FreeCursor(pointer value, XID cid)
|
||||
ScreenPtr pscr;
|
||||
DeviceIntPtr pDev;
|
||||
|
||||
if ( --pCurs->refcnt > 0)
|
||||
/* FIXME: MPX: When FreeClientRessources is called, it calls FreeCursor
|
||||
* too often. Refcnt gots < 0 and FreeCursorBits segfaults because the
|
||||
* memory is already freed. */
|
||||
if ( --pCurs->refcnt != 0)
|
||||
return(Success);
|
||||
|
||||
pDev = inputInfo.pointer;
|
||||
|
||||
Reference in New Issue
Block a user