From e840999ffc93ecb2d870dfed334e093ca1e5e65b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 27 Nov 2009 16:20:13 +1000 Subject: dix: remove core devices when shutting down. (#25028) NewInputDeviceRequest (and RemoveDevice) have checks in place to not allow removal of the VCP/VCK. When shutting down, they need to be cleaned up nonetheless to free the memory associated. X.Org Bug 25028 Signed-off-by: Peter Hutterer Reviewed-by: Keith Packard (cherry picked from commit 66bb8c6fbdfc0fc0d971aac4ec6f949bb9288c1b) --- dix/devices.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dix') diff --git a/dix/devices.c b/dix/devices.c index 395e19acf..e3fd456d4 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -908,6 +908,9 @@ CloseDownDevices(void) DeleteInputDeviceRequest(dev); } + CloseDevice(inputInfo.pointer); + CloseDevice(inputInfo.keyboard); + inputInfo.devices = NULL; inputInfo.off_devices = NULL; inputInfo.keyboard = NULL; -- cgit v1.2.3