properties under /fdm/jsbsim when deleting the JSBSim interface.
This commit is contained in:
parent
6618a7bc5f
commit
6fd33dd2c3
1 changed files with 7 additions and 0 deletions
|
@ -298,6 +298,13 @@ FGJSBsim::FGJSBsim( double dt )
|
|||
FGJSBsim::~FGJSBsim(void)
|
||||
{
|
||||
delete fdmex;
|
||||
|
||||
SGPropertyNode_ptr jsbsimRoot = fgGetNode("/fdm/jsbsim");
|
||||
if (jsbsimRoot) {
|
||||
SGPropertyNode* fdm = jsbsimRoot->getParent();
|
||||
fdm->removeChild("jsbsim", 0, false);
|
||||
}
|
||||
// properties are deleted when the sharedPtr above goes away
|
||||
}
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Add table
Reference in a new issue