1
0
Fork 0

Fix issues related to #419.

This commit is contained in:
ThorstenB 2011-12-19 21:36:42 +01:00
parent 136de6bdf3
commit 596c3e5d03
2 changed files with 3 additions and 3 deletions

View file

@ -371,6 +371,7 @@ void TerrainSamplerImplementation::reinit()
if( subsys == NULL ) if( subsys == NULL )
break; break;
remove_subsystem( subsystemName ); remove_subsystem( subsystemName );
subsys->unbind();
delete subsys; delete subsys;
} }

View file

@ -55,6 +55,8 @@ FGAircraftModel::FGAircraftModel ()
FGAircraftModel::~FGAircraftModel () FGAircraftModel::~FGAircraftModel ()
{ {
// drop reference
_fx = 0;
deinit(); deinit();
} }
@ -91,9 +93,6 @@ FGAircraftModel::reinit()
void void
FGAircraftModel::deinit() FGAircraftModel::deinit()
{ {
// drop reference
_fx = 0;
if (!_aircraft) { if (!_aircraft) {
return; return;
} }