1
0
Fork 0

Fix issue reported by heap debugger

Subsystems are erased by the subsystem manager - so better avoid
dependencies in their destructors.
This commit is contained in:
ThorstenB 2011-07-14 00:22:35 +02:00
parent dcc8d22f7c
commit 80f9092460

View file

@ -87,9 +87,6 @@ FGTileMgr::FGTileMgr():
FGTileMgr::~FGTileMgr()
{
if (_terra_sync)
_terra_sync->setTileCache(NULL);
// remove all nodes we might have left behind
osg::Group* group = globals->get_scenery()->get_terrain_branch();
group->removeChildren(0, group->getNumChildren());