1 From df1704365e700d3cf1d36a241bdfc479159a8df7 Mon Sep 17 00:00:00 2001
2 From: Peter Hutterer <peter.hutterer@who-t.net>
3 Date: Thu, 10 May 2012 15:33:15 +1000
4 Subject: [PATCH 09/12] dix: free the sprite when disabling the device
6 Disabled devices don't need sprites (they can't send events anyway) and the
7 device init process is currently geared to check for whether sprite is
8 present to check if the device should be paired/attached.
10 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
11 Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
12 ---
13 dix/devices.c | 2 ++
14 1 file changed, 2 insertions(+)
16 diff --git a/dix/devices.c b/dix/devices.c
17 index a280dee..f134f31 100644
18 --- a/dix/devices.c
19 +++ b/dix/devices.c
20 @@ -465,6 +465,8 @@ DisableDevice(DeviceIntPtr dev, BOOL sendevent)
21 (void) (*dev->deviceProc) (dev, DEVICE_OFF);
22 dev->enabled = FALSE;
24 + FreeSprite(dev);
25 +
26 /* now that the device is disabled, we can reset the signal handler's
27 * last.slave */
28 OsBlockSignals();
29 --
30 1.7.9.5