SDL_pen.c: release pen mutex on error return
This commit is contained in:
1 parent
d785a647a4
commit
6d37f4798e
1 file changed
+1
@@ -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