Input: Don't reinit devices
If a device is already initialised (i.e. the virtual core devices) during IASD, don't init them again. This fixes a leak. (cherry picked from commit 1f6015c8fe62c28cfaa82cc855b5b9c28fd34607)
This commit is contained in:
parent
a304fc1d4a
commit
102c012c20
|
@ -473,7 +473,8 @@ InitAndStartDevices(void)
|
|||
|
||||
for (dev = inputInfo.off_devices; dev; dev = dev->next) {
|
||||
DebugF("(dix) initialising device %d\n", dev->id);
|
||||
ActivateDevice(dev);
|
||||
if (!dev->inited)
|
||||
ActivateDevice(dev);
|
||||
}
|
||||
for (dev = inputInfo.off_devices; dev; dev = next)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user