1
0
Fork 0

Fix an MSVC debug crash.

Ensure the route-manger unregisters itself from the flightplan
on destruction, since it is a delegate.
This commit is contained in:
James Turner 2013-10-21 23:36:52 +01:00
parent 6845ff56f3
commit 47ecc0ce29

View file

@ -234,6 +234,10 @@ FGRouteMgr::~FGRouteMgr()
input->removeChangeListener(listener);
delete listener;
if (_plan) {
_plan->removeDelegate(this);
}
//SGCommandMgr* cmdMgr = SGCommandMgr::instance();
//cmdMgr->removeCommand("define-user-waypoint");