From 1b0878a835131c9964914d09bd4532dd38a062f9 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 1 Jun 2001 17:52:40 +0000 Subject: [PATCH] - modified setup so that the globals object creates and deletes its own instances of the property and command managers --- src/Main/globals.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index b271b2d7b..ce42e2496 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -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; } -- 2.39.5