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.
This commit is contained in:
parent
941058f8da
commit
24105cf658
|
@ -469,7 +469,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