Fixed more leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6971 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
70bc94b3df
commit
bcb3e7243a
@ -189,7 +189,7 @@ void FeatureUnlockedCutScene::init()
|
||||
|
||||
if (unlockedStuffCount == 0) std::cerr << "There is nothing in the unlock chest!!!\n";
|
||||
|
||||
m_all_kart_models.clear();
|
||||
m_all_kart_models.clearAndDeleteAll();
|
||||
for (int n=0; n<unlockedStuffCount; n++)
|
||||
{
|
||||
if (m_unlocked_stuff[n].m_unlocked_kart != NULL)
|
||||
@ -239,6 +239,7 @@ void FeatureUnlockedCutScene::init()
|
||||
m_unlocked_stuff[n].m_w,
|
||||
m_unlocked_stuff[n].m_h);
|
||||
m_unlocked_stuff[n].m_root_gift_node = irr_driver->addMesh(mesh);
|
||||
mesh->drop();
|
||||
#ifdef DEBUG
|
||||
m_unlocked_stuff[n].m_root_gift_node->setName("unlocked track picture");
|
||||
#endif
|
||||
@ -274,7 +275,7 @@ void FeatureUnlockedCutScene::tearDown()
|
||||
#endif
|
||||
|
||||
m_unlocked_stuff.clearAndDeleteAll();
|
||||
m_all_kart_models.clear();
|
||||
m_all_kart_models.clearAndDeleteAll();
|
||||
} // tearDown
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -62,7 +62,8 @@ class FeatureUnlockedCutScene : public GUIEngine::Screen, public GUIEngine::Scre
|
||||
ptr_vector<UnlockedThing, HOLD> m_unlocked_stuff;
|
||||
|
||||
/** To store the copy of the KartModel for each unlocked kart. */
|
||||
std::vector<KartModel*> m_all_kart_models;
|
||||
ptr_vector<KartModel> m_all_kart_models;
|
||||
|
||||
/** sky angle, 0-360 */
|
||||
float m_sky_angle;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user