Fixed memory leaks of lights.

This commit is contained in:
hiker 2015-07-01 08:04:10 +10:00
parent b41035a008
commit f82bb996ea
2 changed files with 3 additions and 1 deletions

View File

@ -256,6 +256,8 @@ Kart::~Kart()
m_goo_sound ->deleteSFX();
m_beep_sound ->deleteSFX();
m_boing_sound ->deleteSFX();
m_skidding_light_1->drop();
m_skidding_light_2->drop();
delete m_kart_gfx;
if(m_terrain_sound) m_terrain_sound->deleteSFX();
if(m_previous_terrain_sound) m_previous_terrain_sound->deleteSFX();

View File

@ -100,7 +100,7 @@ KartGFX::~KartGFX()
if(m_all_emitters[i])
delete m_all_emitters[i];
} // for i < KGFX_COUNT
m_nitro_light->drop();
} // ~KartGFX
// ----------------------------------------------------------------------------