mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-07 22:23:12 +08:00
Fixed memory leaks.
This commit is contained in:
@@ -97,6 +97,15 @@ CArchMultithreadWindows::CArchMultithreadWindows()
|
||||
CArchMultithreadWindows::~CArchMultithreadWindows()
|
||||
{
|
||||
s_instance = NULL;
|
||||
|
||||
// clean up thread list
|
||||
for (CThreadList::iterator index = m_threadList.begin();
|
||||
index != m_threadList.end(); ++index) {
|
||||
delete *index;
|
||||
}
|
||||
|
||||
// done with mutex
|
||||
delete m_threadMutex;
|
||||
}
|
||||
|
||||
HANDLE
|
||||
|
||||
Reference in New Issue
Block a user