Memory leaks

This commit is contained in:
Oleg Klimov
2017-04-15 21:42:25 +03:00
parent 5a40b5aaae
commit b8afb4d7aa
3 changed files with 51 additions and 44 deletions

View File

@@ -195,6 +195,14 @@ struct BulletMJCFImporterInternalData
m_pathPrefix[0] = 0;
}
~BulletMJCFImporterInternalData()
{
for (int i=0;i<m_models.size();i++)
{
delete m_models[i];
}
}
std::string sourceFileLocation(TiXmlElement* e)
{
#if 0