From: <hik...@us...> - 2008-04-29 03:50:12
|
Revision: 1775 http://supertuxkart.svn.sourceforge.net/supertuxkart/?rev=1775&view=rev Author: hikerstk Date: 2008-04-28 20:50:08 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Removed minor memory leak. Modified Paths: -------------- trunk/supertuxkart/src/kart.cpp Modified: trunk/supertuxkart/src/kart.cpp =================================================================== --- trunk/supertuxkart/src/kart.cpp 2008-04-29 03:40:59 UTC (rev 1774) +++ trunk/supertuxkart/src/kart.cpp 2008-04-29 03:50:08 UTC (rev 1775) @@ -200,9 +200,9 @@ 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()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |