Clear atomic listeners too
This is part of trying to reduce possible causes of the property crash on shutdown.
This commit is contained in:
parent
3af8d11e1b
commit
0dfdf63399
1 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
||||||
#include <simgear/misc/ResourceManager.hxx>
|
#include <simgear/misc/ResourceManager.hxx>
|
||||||
#include <simgear/props/propertyObject.hxx>
|
#include <simgear/props/propertyObject.hxx>
|
||||||
#include <simgear/props/props_io.hxx>
|
#include <simgear/props/props_io.hxx>
|
||||||
|
#include <simgear/props/AtomicChangeListener.hxx>
|
||||||
#include <simgear/scene/model/modellib.hxx>
|
#include <simgear/scene/model/modellib.hxx>
|
||||||
#include <simgear/package/Root.hxx>
|
#include <simgear/package/Root.hxx>
|
||||||
|
|
||||||
|
@ -949,6 +950,8 @@ void FGGlobals::cleanupListeners()
|
||||||
delete *i;
|
delete *i;
|
||||||
}
|
}
|
||||||
_listeners_to_cleanup.clear();
|
_listeners_to_cleanup.clear();
|
||||||
|
|
||||||
|
simgear::AtomicChangeListener::clearPendingChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
simgear::pkg::Root* FGGlobals::packageRoot()
|
simgear::pkg::Root* FGGlobals::packageRoot()
|
||||||
|
|
Loading…
Reference in a new issue