From bc539e6284a498089f502e369684c6c4341c3183 Mon Sep 17 00:00:00 2001 From: frohlich Date: Thu, 4 Jan 2007 12:48:21 +0000 Subject: [PATCH] Modified Files: globals.cxx: Use the command manager singleton --- src/Main/globals.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;