Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
al_run_detached_thread: fix segfault on detaching when the thread is …
…already gone detached_thread_func_trampoline freed the outer thread at its end. If outer->proc was really fast to finish, _al_thread_detach could get called with &outer->thread as its argument after outer was already freed. Usually it would be fast enough to not ever be overwritten after freeing, but tools like asan explicitly overwrite freed memory, leading to reproducible crash.
- Loading branch information