Fixed a handle leak.
This commit is contained in:
parent
18e909e650
commit
4a0a099c11
|
@ -360,6 +360,8 @@ static DWORD WINAPI ThreadFunc( LPVOID info )
|
|||
if( !r )
|
||||
goto end;
|
||||
WaitForSingleObject( pi.hProcess, INFINITE );
|
||||
CloseHandle( pi.hProcess );
|
||||
CloseHandle( pi.hThread );
|
||||
|
||||
end:
|
||||
if( bTempfile )
|
||||
|
|
Loading…
Reference in New Issue