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>
(cherry picked from commit 66bb8c6fbd
)
This commit is contained in:
parent
51aad8bebc
commit
e840999ffc
|
@ -908,6 +908,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