From: curt Date: Fri, 1 Jun 2001 17:52:40 +0000 (+0000) Subject: - modified setup so that the globals object creates and deletes its X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1b0878a835131c9964914d09bd4532dd38a062f9;p=flightgear.git - modified setup so that the globals object creates and deletes its own instances of the property and command managers --- 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; }