Close semaphore handles.

This commit is contained in:
Brandon Wright 2018-04-12 19:15:10 -05:00
parent 4ede4b7447
commit 2426c2412f
1 changed files with 2 additions and 0 deletions

View File

@ -319,6 +319,8 @@ static void S9xAPUThreadDeinit(void)
S9xAPUThreadRun();
WaitForSingleObject(worker_thread, INFINITE);
CloseHandle(worker_thread);
CloseHandle(thread_running_semaphore);
CloseHandle(thread_waiting_semaphore);
}
#else