Fix thread leak on Windows

Fixes #4973 <https://github.com/Genymobile/scrcpy/issues/4973>
This commit is contained in:
Romain Vimont 2024-06-09 18:27:30 +02:00
parent fd9498e07c
commit 5d1d5bdc16

View File

@ -176,6 +176,8 @@ sc_process_execute_p(const char *const argv[], HANDLE *handle, unsigned flags,
free(lpAttributeList);
}
CloseHandle(pi.hThread);
// These handles are used by the child process, close them for this process
if (pin) {
CloseHandle(stdin_read_handle);