fixed memory leak

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2008-09-30 20:38:11 +00:00
parent 5f7cba7975
commit 11bec6a781
4 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class FollowTheLeaderRace : public LinearWorld, public Clock::ClockListener
std::vector<float> m_leader_intervals; // time till elimination in follow leader
public:
FollowTheLeaderRace();
~FollowTheLeaderRace();
virtual ~FollowTheLeaderRace();
// clock events
virtual void countdownReachedZero();

View File

@@ -72,6 +72,11 @@ LinearWorld::LinearWorld() : World()
}// next kart
}
//-----------------------------------------------------------------------------
LinearWorld::~LinearWorld()
{
delete[] m_kart_display_info;
}
//-----------------------------------------------------------------------------
void LinearWorld::restartRace()
{
World::restartRace();

View File

@@ -61,6 +61,7 @@ protected:
public:
LinearWorld();
virtual ~LinearWorld();
/** This vector contains an 'KartInfo' struct for every kart in the race.
* This member is not strictly private but try not to use it directly outside

View File

@@ -28,7 +28,7 @@ class StandardRace : public LinearWorld, public Clock::ClockListener
{
public:
StandardRace();
~StandardRace();
virtual ~StandardRace();
// clock events
virtual void countdownReachedZero();