1
0
Fork 0

Fix crash on Mac OS X when FG does not finish input init

This commit is contained in:
Szymon Acedański 2017-02-25 14:42:40 +01:00
parent f71c20600a
commit d401a50e0a

View file

@ -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