SDL/src
Sam Lantinga 8b0c9e1dce Don't leak device handle in macOS 10.10 or newer
Merged upstream fix for macOS:
cdc473dfe4

In one of the early versions of macOS, when you try to close the device
with IOHIDDeviceClose() that is being physically disconnected.
Starting with some version of macOS, this crash bug was fixed,
and starting with macSO 10.15 the opposite effect took place:
in some environments crash happens if IOHIDDeviceClose() is _not_ called.

This patch is to keep a workaround for old versions of macOS,
and don't have a leak in new/tested environments.

Fixes https://github.com/libsdl-org/SDL/issues/12255

(cherry picked from commit 5925c27efb)
2025-02-19 17:00:05 -08:00
..
atomic Updated copyright for 2025 2025-01-01 07:47:53 -08:00
audio Fix SDL_emscriptenaudio.c under wasm64 2025-02-19 17:00:05 -08:00
core Updated copyright for 2025 2025-01-01 07:47:53 -08:00
cpuinfo Updated copyright for 2025 2025-01-01 07:47:53 -08:00
dynapi dynapi: Don't use SDL_getenv; it might malloc before the app sets an allocator. 2025-02-06 12:40:13 -05:00
events Vita: Fix off-by-one error for synthetic mouse events 2025-01-16 11:59:25 -08:00
file Skip IsRegularFileOrPipe() check on Emscripten 2025-01-28 10:47:10 +03:00
filesystem Updated copyright for 2025 2025-01-01 07:47:53 -08:00
haptic Use proper polar direction when creating FF_RUMBLE effect 2025-01-20 16:52:11 -08:00
hidapi Don't leak device handle in macOS 10.10 or newer 2025-02-19 17:00:05 -08:00
joystick Don't use the HIDAPI driver for Thrustmaster wheels 2025-02-05 17:21:48 -08:00
libm Updated copyright for 2025 2025-01-01 07:47:53 -08:00
loadso Updated copyright for 2025 2025-01-01 07:47:53 -08:00
locale Updated copyright for 2025 2025-01-01 07:47:53 -08:00
main Updated to version 2.32.0 for release 2025-02-08 09:10:22 -08:00
misc Updated copyright for 2025 2025-01-01 07:47:53 -08:00
power Updated copyright for 2025 2025-01-01 07:47:53 -08:00
render Updated copyright for 2025 2025-01-01 07:47:53 -08:00
sensor Updated copyright for 2025 2025-01-01 07:47:53 -08:00
stdlib Port back nolibc SDL_strtol implementations from SDL3 to SDL2 2025-01-02 21:46:28 +01:00
test test_fuzzer: Patched to compile on Visual Studio. 2025-01-04 01:02:10 -05:00
thread Delete src/thread/n3ds/SDL_syscond.c 2025-02-06 18:12:31 -08:00
timer Updated copyright for 2025 2025-01-01 07:47:53 -08:00
video Fixed crash when trying to disconnect secondary display on iOS 2025-01-29 14:45:49 -08:00
SDL.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_assert.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_assert_c.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_dataqueue.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_dataqueue.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_error.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_error_c.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_guid.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_hints.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_hints_c.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_internal.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_list.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_list.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_log.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_log_c.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_utils.c Updated copyright for 2025 2025-01-01 07:47:53 -08:00
SDL_utils_c.h Updated copyright for 2025 2025-01-01 07:47:53 -08:00