Merge branch 'next' of git://gitorious.org/fg/flightgear into next
This commit is contained in:
commit
92be000dbd
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