Fix thread leak on Windows

Fixes #4973 <https://github.com/Genymobile/scrcpy/issues/4973>
icon_decoder
Romain Vimont 3 months ago
parent fd9498e07c
commit 5d1d5bdc16

@ -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);

Loading…
Cancel
Save