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