mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
192b76ddc6
Removing the device from the devices list after closing the device could cause the device to be double-freed if something went wrong in the device removal callback resulting in system shutdown which would then close all open devices. The device is removed from the list before the callback is called. There's still a small opportunity for such in a multi-threaded environment, but that would take device removal occurring at the same time as the input system is shut down. Probably the responsibility of the threaded environment rather than inputlib. |
||
---|---|---|
.. | ||
hotplug.c | ||
inputlib.c |