mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-21 10:43:36 +00:00
1. Fixed process HANDLE leak on windows
2. Replaced semaphore with spinlock on event emitter object.
This commit is contained in:
@@ -451,6 +451,9 @@ void ILibProcessPipe_Process_Destroy(ILibProcessPipe_Process_Object *p)
|
||||
if (p->stdOut != NULL) { ILibProcessPipe_FreePipe(p->stdOut); }
|
||||
if (p->stdErr != NULL) { ILibProcessPipe_FreePipe(p->stdErr); }
|
||||
if (p->metadata != NULL) { ILibMemory_Free(p->metadata); }
|
||||
#ifdef WIN32
|
||||
if (p->hProcess != NULL) { CloseHandle(p->hProcess); }
|
||||
#endif
|
||||
ILibMemory_Free(p);
|
||||
}
|
||||
#ifndef WIN32
|
||||
|
||||
Reference in New Issue
Block a user