Fix leak
This commit is contained in:
parent
d968ce11bf
commit
c8b50c67ef
@ -391,6 +391,8 @@ World::~World()
|
|||||||
music_manager->stopMusic();
|
music_manager->stopMusic();
|
||||||
m_world = NULL;
|
m_world = NULL;
|
||||||
|
|
||||||
|
irr_driver->getSceneManager()->clear();
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
m_magic_number = 0xDEADBEEF;
|
m_magic_number = 0xDEADBEEF;
|
||||||
#endif
|
#endif
|
||||||
|
@ -425,7 +425,6 @@ void Track::cleanup()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} // if verbose
|
} // if verbose
|
||||||
|
|
||||||
} // cleanup
|
} // cleanup
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@ -2020,11 +2019,15 @@ void Track::loadObjects(const XMLNode* root, const std::string& path, ModelDefin
|
|||||||
}
|
}
|
||||||
|
|
||||||
scene::ISceneNode* parent = irr_driver->getSceneManager()->addEmptySceneNode();
|
scene::ISceneNode* parent = irr_driver->getSceneManager()->addEmptySceneNode();
|
||||||
|
#ifdef DEBUG
|
||||||
|
parent->setName(("libnode_" + name).c_str());
|
||||||
|
#endif
|
||||||
parent->setPosition(xyz);
|
parent->setPosition(xyz);
|
||||||
parent->setRotation(hpr);
|
parent->setRotation(hpr);
|
||||||
parent->setScale(scale);
|
parent->setScale(scale);
|
||||||
parent->updateAbsolutePosition();
|
parent->updateAbsolutePosition();
|
||||||
loadObjects(libroot, lib_path, model_def_loader, create_lod_definitions, parent, library_nodes);
|
loadObjects(libroot, lib_path, model_def_loader, create_lod_definitions, parent, library_nodes);
|
||||||
|
//m_all_nodes.push_back(parent);
|
||||||
}
|
}
|
||||||
else if (name == "water")
|
else if (name == "water")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user