Fix Win32 thread handle leak
This commit is contained in:
parent
15334e56cd
commit
9ba30c4e20
@ -71,6 +71,7 @@ ALuint StopThread(ALvoid *thread)
|
|||||||
|
|
||||||
WaitForSingleObject(inf->thread, INFINITE);
|
WaitForSingleObject(inf->thread, INFINITE);
|
||||||
GetExitCodeThread(inf->thread, &ret);
|
GetExitCodeThread(inf->thread, &ret);
|
||||||
|
CloseHandle(inf->thread);
|
||||||
|
|
||||||
free(inf);
|
free(inf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user