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:
parent
83d90b90bc
commit
66bb8c6fbd
|
@ -907,6 +907,9 @@ CloseDownDevices(void)
|
|||
DeleteInputDeviceRequest(dev);
|
||||
}
|
||||
|
||||
CloseDevice(inputInfo.pointer);
|
||||
CloseDevice(inputInfo.keyboard);
|
||||
|
||||
inputInfo.devices = NULL;
|
||||
inputInfo.off_devices = NULL;
|
||||
inputInfo.keyboard = NULL;
|
||||
|
|
Loading…
Reference in New Issue