revert memory deletions, should be done properly
This commit is contained in:
@@ -249,8 +249,6 @@ void PosixThreadSupport::stopSPU()
|
|||||||
printf("semaphore destroyed\n");
|
printf("semaphore destroyed\n");
|
||||||
checkPThreadFunction(pthread_join(spuStatus.thread,0));
|
checkPThreadFunction(pthread_join(spuStatus.thread,0));
|
||||||
|
|
||||||
if(spuStatus.m_lsMemory)
|
|
||||||
delete spuStatus.m_lsMemory;
|
|
||||||
}
|
}
|
||||||
printf("destroy main semaphore\n");
|
printf("destroy main semaphore\n");
|
||||||
destroySem(mainSemaphore);
|
destroySem(mainSemaphore);
|
||||||
|
|||||||
@@ -300,8 +300,6 @@ void Win32ThreadSupport::stopSPU()
|
|||||||
CloseHandle(spuStatus.m_eventStartHandle);
|
CloseHandle(spuStatus.m_eventStartHandle);
|
||||||
CloseHandle(spuStatus.m_threadHandle);
|
CloseHandle(spuStatus.m_threadHandle);
|
||||||
|
|
||||||
if(spuStatus.m_lsMemory)
|
|
||||||
delete spuStatus.m_lsMemory;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_activeSpuStatus.clear();
|
m_activeSpuStatus.clear();
|
||||||
|
|||||||
@@ -1157,8 +1157,6 @@ btParallelConstraintSolver::~btParallelConstraintSolver()
|
|||||||
{
|
{
|
||||||
delete m_memoryCache;
|
delete m_memoryCache;
|
||||||
delete m_solverIO;
|
delete m_solverIO;
|
||||||
delete m_barrier;
|
|
||||||
delete m_criticalSection;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user