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:
parent
25b611a8d3
commit
d7e78fa23a
@ -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
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user