mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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 <http://bugs.freedesktop.org/show_bug.cgi?id=25028> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -907,6 +907,9 @@ CloseDownDevices(void)
|
||||
DeleteInputDeviceRequest(dev);
|
||||
}
|
||||
|
||||
CloseDevice(inputInfo.pointer);
|
||||
CloseDevice(inputInfo.keyboard);
|
||||
|
||||
inputInfo.devices = NULL;
|
||||
inputInfo.off_devices = NULL;
|
||||
inputInfo.keyboard = NULL;
|
||||
|
||||
Reference in New Issue
Block a user