Fixed memory leaks of lights.
This commit is contained in:
parent
b41035a008
commit
f82bb996ea
@ -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();
|
||||
|
@ -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
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user