From: Durk T. <du...@fl...> - 2007-10-20 08:44:30
|
Update of /var/cvs/FlightGear-0.9/source/src/GUI In directory baron:/tmp/cvs-serv2179/GUI Modified Files: new_gui.cxx Log Message: Miscellaneous tweaks and Bugfixes. Mostly memory leaks ported from the plib version * Delete ai list objects in ~ATC/AIMgr.cxx:AIMgr::~AIMgr() * Delete colors in GUI/new_gui.cxx: NewGui::~NewGui.cxx * Delete memory allocated to the class member "route" in Instrumentation/gps.cxx * Delete all globals (except a few "unsafe" ones that still cause segfaults and need further examination. * Use an SGShared pointer for navaid memory allocation, so that pointers to individual navaid objects can be included safely in multiple navaid lists Index: new_gui.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/GUI/new_gui.cxx,v retrieving revision 1.54 retrieving revision 1.55 diff -C 2 -r1.54 -r1.55 *** new_gui.cxx 3 May 2007 18:12:29 -0000 1.54 --- new_gui.cxx 20 Oct 2007 08:36:21 -0000 1.55 *************** *** 36,39 **** --- 36,41 ---- delete _menubar; _dialog_props.clear(); + for (_itt_t it = _colors.begin(); it != _colors.end(); ++it) + delete it->second; } |