mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fixed crash if SDL_SYS_CreateThread() fails (thanks @capehill!)
Fixes https://github.com/libsdl-org/SDL/issues/15340
This commit is contained in:
parent
f61a22e10f
commit
7f23f09ee8
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ SDL_Thread *SDL_CreateThreadWithPropertiesRuntime(SDL_PropertiesID props,
|
|||
SDL_DestroySemaphore(thread->ready_sem);
|
||||
SDL_free(thread->name);
|
||||
SDL_free(thread);
|
||||
thread = NULL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SDL_WaitSemaphore(thread->ready_sem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue