From 66bb8c6fbdfc0fc0d971aac4ec6f949bb9288c1b 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 --- dix/devices.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dix/devices.c b/dix/devices.c index bb7b23b83..6329d2810 100644 --- a/dix/devices.c +++ b/dix/devices.c @@ -907,6 +907,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