Fix issues related to #419.
This commit is contained in:
parent
136de6bdf3
commit
596c3e5d03
2 changed files with 3 additions and 3 deletions
|
@ -371,6 +371,7 @@ void TerrainSamplerImplementation::reinit()
|
|||
if( subsys == NULL )
|
||||
break;
|
||||
remove_subsystem( subsystemName );
|
||||
subsys->unbind();
|
||||
delete subsys;
|
||||
}
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@ FGAircraftModel::FGAircraftModel ()
|
|||
|
||||
FGAircraftModel::~FGAircraftModel ()
|
||||
{
|
||||
// drop reference
|
||||
_fx = 0;
|
||||
deinit();
|
||||
}
|
||||
|
||||
|
@ -91,9 +93,6 @@ FGAircraftModel::reinit()
|
|||
void
|
||||
FGAircraftModel::deinit()
|
||||
{
|
||||
// drop reference
|
||||
_fx = 0;
|
||||
|
||||
if (!_aircraft) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue