- modified setup so that the globals object creates and deletes its
own instances of the property and command managers
This commit is contained in:
parent
ecda50f9bc
commit
1b0878a835
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,8 @@ FGGlobals::FGGlobals() :
|
|||
freeze( false ),
|
||||
warp( 0 ),
|
||||
warp_delta( 0 ),
|
||||
props(0),
|
||||
commands(new SGCommandMgr),
|
||||
props(new SGPropertyNode),
|
||||
initial_state(0)
|
||||
{
|
||||
}
|
||||
|
@ -49,6 +50,8 @@ FGGlobals::FGGlobals() :
|
|||
FGGlobals::~FGGlobals()
|
||||
{
|
||||
delete initial_state;
|
||||
delete props;
|
||||
delete commands;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue