diff --git a/src/events/SDL_pen.c b/src/events/SDL_pen.c index ed15c3100..e1d69115b 100644 --- a/src/events/SDL_pen.c +++ b/src/events/SDL_pen.c @@ -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); \ }