Skip to content
Permalink
Browse files

Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric W…

…asylishen.
  • Loading branch information
slouken committed Oct 19, 2016
1 parent ae8ca7c commit 267207ffca64dac5afc96096019f976de7871db1
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/video/cocoa/SDL_cocoakeyboard.m
@@ -235,7 +235,12 @@ - (NSArray *)validAttributesForMarkedText
IOHIDManagerUnscheduleFromRunLoop(s_hidManager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
IOHIDManagerRegisterInputValueCallback(s_hidManager, NULL, NULL);
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);
#endif
s_hidManager = NULL;
}

0 comments on commit 267207f

Please sign in to comment.