SDL_pen.c: release pen mutex on error return

main
Christoph Reichenbach 2024-03-28 20:37:54 +00:00
parent d785a647a4
commit 6d37f4798e
1 changed files with 1 additions and 0 deletions

View File

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