fix memory leak

This commit is contained in:
Erwin Coumans
2018-05-02 12:49:35 -07:00
parent 988d78cb61
commit 2b5f86a593

View File

@@ -277,7 +277,7 @@ void b3PosixThreadSupport::stopThreads()
destroySem(spuStatus.startSemaphore);
printf("semaphore destroyed\n");
checkPThreadFunction(pthread_join(spuStatus.thread,0));
delete spuStatus.m_lsMemory;
}
printf("destroy main semaphore\n");
destroySem(m_mainSemaphore);