Skip to content

Commit

Permalink
Worked around a crash on Mac OS X 10.10 and earlier, thanks to Eric W…
Browse files Browse the repository at this point in the history
…asylishen.
  • Loading branch information
slouken committed Oct 19, 2016
1 parent ae8ca7c commit 267207f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -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;
}

Expand Down

0 comments on commit 267207f

Please sign in to comment.