Fixed memory leak.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6766 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-11-29 05:42:27 +00:00
parent 25b611a8d3
commit d7e78fa23a

View File

@ -334,6 +334,10 @@ Kart::~Kart()
delete m_kart_chassis.getChildShape(i);
}
delete m_kart_model;
if(m_controller)
delete m_controller;
if(m_saved_controller)
delete m_saved_controller;
} // ~Kart
//-----------------------------------------------------------------------------