mirror of
https://github.com/overte-org/overte.git
synced 2025-07-31 14:14:16 +02:00
Merge pull request #4803 from Atlante45/edit_js
Fix OS X shutdown crash
This commit is contained in:
commit
0e56b49b28
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ void DeviceTracker::destroyDevice(const Name& name) {
|
||||||
DeviceTracker::ID deviceID = getDeviceID(name);
|
DeviceTracker::ID deviceID = getDeviceID(name);
|
||||||
if (deviceID != INVALID_DEVICE) {
|
if (deviceID != INVALID_DEVICE) {
|
||||||
delete Singleton::get()->_devicesVector[getDeviceID(name)];
|
delete Singleton::get()->_devicesVector[getDeviceID(name)];
|
||||||
|
Singleton::get()->_devicesVector[getDeviceID(name)] = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue