mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 22:55:33 +00:00
Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric Wasylishen.
This commit is contained in:
parent
ae8ca7c54d
commit
267207ffca
|
@ -235,7 +235,12 @@ QuitHIDCallback()
|
||||||
IOHIDManagerUnscheduleFromRunLoop(s_hidManager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
IOHIDManagerUnscheduleFromRunLoop(s_hidManager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||||
IOHIDManagerRegisterInputValueCallback(s_hidManager, NULL, NULL);
|
IOHIDManagerRegisterInputValueCallback(s_hidManager, NULL, NULL);
|
||||||
IOHIDManagerClose(s_hidManager, 0);
|
IOHIDManagerClose(s_hidManager, 0);
|
||||||
|
|
||||||
|
#if 0 /* Releasing here causes a crash on Mac OS X 10.10 and earlier,
|
||||||
|
* so just leak it for now. See bug 2157 for details.
|
||||||
|
*/
|
||||||
CFRelease(s_hidManager);
|
CFRelease(s_hidManager);
|
||||||
|
#endif
|
||||||
s_hidManager = NULL;
|
s_hidManager = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue