Fixed memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6975 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
6c194bbffa
commit
d4513f0b40
@ -98,7 +98,11 @@ void TriangleMesh::removeBody()
|
||||
{
|
||||
World::getWorld()->getPhysics()->removeBody(m_body);
|
||||
delete m_body;
|
||||
m_body = 0;
|
||||
delete m_motion_state;
|
||||
delete m_collision_shape;
|
||||
m_body = NULL;
|
||||
m_motion_state = NULL;
|
||||
m_collision_shape = NULL;
|
||||
} // removeBody
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user