Removed minor memory leak.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-04-29 03:50:08 +00:00
parent 1fd6eb7b66
commit 0b4ceb8c2b

View File

@ -200,9 +200,9 @@ void Kart::createPhysics(ssgEntity *obj)
wheel.m_rollInfluence = m_kart_properties->getRollInfluence();
}
// Obviously these allocs have to be properly managed/freed
btTransform *t=new btTransform();
t->setIdentity();
m_uprightConstraint=new btUprightConstraint(*m_body, *t);
btTransform t;
t.setIdentity();
m_uprightConstraint=new btUprightConstraint(*m_body, t);
m_uprightConstraint->setLimit(m_kart_properties->getUprightTolerance());
m_uprightConstraint->setBounce(0.0f);
m_uprightConstraint->setMaxLimitForce(m_kart_properties->getUprightMaxForce());