mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-06 05:17:48 +00:00
SDL_pen.c: release pen mutex on error return
This commit is contained in:
@@ -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); \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user