dix: close virtual core devices after other devices.

If a device is paired with the VCP, deleting the VCP before the device will
segfault the server when the sprite should get updated.
This commit is contained in:
Peter Hutterer 2007-09-06 17:27:28 +09:30
parent 03680a384a
commit 49dbe9a757

View File

@ -712,9 +712,6 @@ CloseDownDevices(void)
{
DeviceIntPtr dev, next;
CloseDevice(inputInfo.keyboard);
CloseDevice(inputInfo.pointer);
for (dev = inputInfo.devices; dev; dev = next)
{
next = dev->next;
@ -725,6 +722,10 @@ CloseDownDevices(void)
next = dev->next;
CloseDevice(dev);
}
CloseDevice(inputInfo.keyboard);
CloseDevice(inputInfo.pointer);
inputInfo.devices = NULL;
inputInfo.off_devices = NULL;
inputInfo.keyboard = NULL;