[PATCH 4/7] dix: free the sprite when disabling the device
Peter Hutterer
peter.hutterer at who-t.net
Tue May 15 03:36:26 PDT 2012
Disabled devices don't need sprites (they can't send events anyway) and the
device init process is currently geared to check for whether sprite is
present to check if the device should be paired/attached.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
dix/devices.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dix/devices.c b/dix/devices.c
index 8adf3c9..efce5c1 100644
--- a/dix/devices.c
+++ b/dix/devices.c
@@ -465,6 +465,8 @@ DisableDevice(DeviceIntPtr dev, BOOL sendevent)
(void) (*dev->deviceProc) (dev, DEVICE_OFF);
dev->enabled = FALSE;
+ FreeSprite(dev);
+
/* now that the device is disabled, we can reset the signal handler's
* last.slave */
OsBlockSignals();
--
1.7.10.1
More information about the xorg-devel
mailing list