Fixed more memory leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
65d2fff63c
commit
347d73cfd1
@ -450,11 +450,13 @@ bool DeviceManager::deserialize()
|
||||
|
||||
} // end switch
|
||||
} // end while
|
||||
|
||||
if(UserConfigParams::m_verbosity>=4)
|
||||
{
|
||||
printf("Found %d keyboard and %d gamepad configurations.\n",
|
||||
m_keyboard_configs.size(), m_gamepad_configs.size());
|
||||
}
|
||||
|
||||
// For Debugging....
|
||||
/*
|
||||
for (int n = 0; n < m_keyboard_configs.size(); n++)
|
||||
@ -463,6 +465,8 @@ bool DeviceManager::deserialize()
|
||||
for (int n = 0; n < m_gamepad_configs.size(); n++)
|
||||
printf("%s", m_gamepad_configs[n].toString().c_str());
|
||||
*/
|
||||
|
||||
delete xml;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -315,6 +315,9 @@ void QuadGraph::createMesh(bool show_invisible)
|
||||
//m_node->setAutomaticCulling(scene::EAC_OFF);
|
||||
m_mesh_buffer->recalculateBoundingBox();
|
||||
m_mesh->setBoundingBox(m_mesh_buffer->getBoundingBox());
|
||||
|
||||
delete[] ind;
|
||||
delete[] new_v;
|
||||
} // createMesh
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user