SDL_pen.c: release pen mutex on error return
parent
d785a647a4
commit
6d37f4798e
|
@ -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); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue