SDL_pen.c: release pen mutex on error return

This commit is contained in:
Christoph Reichenbach 2024-03-28 20:37:54 +00:00
parent d785a647a4
commit 6d37f4798e

View file

@ -74,6 +74,7 @@ static SDL_GUID pen_guid_zero = { { 0 } };
penvar = SDL_GetPenPtr(instance_id); \
if (!(penvar)) { \
SDL_SetError("Stale SDL_PenID"); \
SDL_UNLOCK_PENS(); \
return (err_return); \
}