mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-22 16:52:40 +00:00
These functions already return immediately for NULL objects in normal builds, but it was done through CHECK_PARAM. When building with SDL_DISABLE_INVALID_PARAMS, these checks were compiled out, and NULL resources could reach backend release functions and cause segfault. Always return on NULL so API behaves consistently regardless of SDL_DISABLE_INVALID_PARAMS.