ATIS_mgr( NULL ),
controls( NULL ),
viewmgr( NULL ),
- commands( SGCommandMgr::instance() ),
+ commands( new SGCommandMgr ),
channel_options_list( NULL ),
initial_waypoints( NULL ),
fontcache ( new FGFontCache ),
locale = NULL;
props.clear();
+
+ delete commands;
}
// set the fg_root path
{
delete locale;
-#if DEBUG_RESET
SG_LOG(SG_GENERAL, SG_INFO, "root props refcount:" << props.getNumRefs());
treeDumpRefCounts(0, props);
-#endif
+
props = new SGPropertyNode;
initProperties();
locale = new FGLocale(props);