commit | 4ec6f86dccfa65640501394451acb0e4afc5d508 | [log] [tgz] |
---|---|---|
author | David Ludwig <dludwig@pobox.com> | Thu Jan 30 18:03:34 2020 -0500 |
committer | David Ludwig <dludwig@pobox.com> | Thu Jan 30 18:03:34 2020 -0500 |
tree | e4548cac22d9dc2e002d155d8cdc467826c292d4 | |
parent | df5bd6eab086cfd98f1f3a577b4f6fec4bb558dd [diff] |
FIX for SDL-4927: CFRetain+CFRelease a game controller's IOKit object This fixes a crash whereby SDL could crash on macOS/Darwin, if and when a USB game controller gets unplugged. SDL was not retaining a reference to the controller's OS/IOKit-provided 'device object', and was capable of trying to use it, after a device was hot-unplugged.