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 )
|
if( subsys == NULL )
|
||||||
break;
|
break;
|
||||||
remove_subsystem( subsystemName );
|
remove_subsystem( subsystemName );
|
||||||
|
subsys->unbind();
|
||||||
delete subsys;
|
delete subsys;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue