]> git.mxchange.org Git - flightgear.git/commitdiff
- modified setup so that the globals object creates and deletes its
authorcurt <curt>
Fri, 1 Jun 2001 17:52:40 +0000 (17:52 +0000)
committercurt <curt>
Fri, 1 Jun 2001 17:52:40 +0000 (17:52 +0000)
  own instances of the property and command managers

src/Main/globals.cxx

index b271b2d7b171f8345706ad09689acdb785bcc4b9..ce42e2496c9bd86a19a9e4211c0b8811ef4861cc 100644 (file)
@@ -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;
 }