Make sure the unbind method is called for all registered subsystems proir to deleting the subsystem manager.
This commit is contained in:
parent
73d4b78396
commit
afb0ada81f
1 changed files with 1 additions and 0 deletions
|
@ -125,6 +125,7 @@ FGGlobals::~FGGlobals()
|
||||||
// deleted subsystems.
|
// deleted subsystems.
|
||||||
subsystem_mgr->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("input");
|
subsystem_mgr->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("input");
|
||||||
subsystem_mgr->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("gui");
|
subsystem_mgr->get_group(SGSubsystemMgr::GENERAL)->remove_subsystem("gui");
|
||||||
|
subsystem_mgr->unbind();
|
||||||
delete subsystem_mgr;
|
delete subsystem_mgr;
|
||||||
delete event_mgr;
|
delete event_mgr;
|
||||||
delete time_params;
|
delete time_params;
|
||||||
|
|
Loading…
Reference in a new issue