mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-21 08:11:07 +01:00
The error string is not protected by a mutex, and can be set from multiple threads at the same time. Without this change, it can be double-freed. It can still be double-allocated, leading to a memory leak, but at least it won't crash now. Signed-off-by: Sam Lantinga <slouken@libsdl.org>