mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-07-31 18:39:30 +00:00
add removeState in C++ API, see also Issue https://github.com/bulletphysics/bullet3/issues/2935
This commit is contained in:
@@ -2038,6 +2038,12 @@ PhysicsServerCommandProcessor::~PhysicsServerCommandProcessor()
|
||||
if (m_data->m_threadPool)
|
||||
delete m_data->m_threadPool;
|
||||
|
||||
for (int i = 0; i < m_data->m_savedStates.size(); i++)
|
||||
{
|
||||
delete m_data->m_savedStates[i].m_bulletFile;
|
||||
delete m_data->m_savedStates[i].m_serializer;
|
||||
}
|
||||
|
||||
delete m_data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user