Skip to content

Commit

Permalink
SDL_pen.c: release pen mutex on error return
Browse files Browse the repository at this point in the history
  • Loading branch information
creichen committed Mar 28, 2024
1 parent d785a64 commit 6d37f47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/events/SDL_pen.c
Expand Up @@ -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); \
}

Expand Down

0 comments on commit 6d37f47

Please sign in to comment.