Fix crash on Mac OS X when FG does not finish input init
This commit is contained in:
parent
f71c20600a
commit
d401a50e0a
1 changed files with 5 additions and 3 deletions
|
@ -229,10 +229,12 @@ void FGMacOSXEventInput::shutdown()
|
|||
{
|
||||
FGEventInput::shutdown();
|
||||
|
||||
if (d->hidManager) {
|
||||
IOHIDManagerClose(d->hidManager, kIOHIDOptionsTypeNone);
|
||||
IOHIDManagerUnscheduleFromRunLoop(d->hidManager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
CFRelease(d->hidManager);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// read all elements in each input device
|
||||
|
|
Loading…
Reference in a new issue