mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-18 19:20:57 +00:00
These callbacks run in a thread we don't control, but might call SDL_SetError, which will claim a TLS slot that never gets otherwise deallocated. To prevent the leak, finish each callback by explicitly freeing any thread-local data. Fixes #12732.