From: frohlich Date: Thu, 4 Jan 2007 12:48:21 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc539e6284a498089f502e369684c6c4341c3183;p=flightgear.git Modified Files: globals.cxx: Use the command manager singleton --- diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 9770d0d08..33098d807 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -73,7 +73,7 @@ FGGlobals::FGGlobals() : props( new SGPropertyNode ), initial_state( NULL ), locale( NULL ), - commands( new SGCommandMgr ), + commands( SGCommandMgr::instance() ), model_lib( NULL ), acmodel( NULL ), model_mgr( NULL ), @@ -103,7 +103,6 @@ FGGlobals::~FGGlobals() delete event_mgr; delete initial_state; delete props; - delete commands; delete io; delete fontcache; delete renderer;