1
0
Fork 0

Clear atomic listeners too

This is part of trying to reduce possible causes of the property
crash on shutdown.
This commit is contained in:
James Turner 2020-10-29 17:28:05 +00:00
parent 3af8d11e1b
commit 0dfdf63399

View file

@ -39,6 +39,7 @@
#include <simgear/misc/ResourceManager.hxx>
#include <simgear/props/propertyObject.hxx>
#include <simgear/props/props_io.hxx>
#include <simgear/props/AtomicChangeListener.hxx>
#include <simgear/scene/model/modellib.hxx>
#include <simgear/package/Root.hxx>
@ -949,6 +950,8 @@ void FGGlobals::cleanupListeners()
delete *i;
}
_listeners_to_cleanup.clear();
simgear::AtomicChangeListener::clearPendingChanges();
}
simgear::pkg::Root* FGGlobals::packageRoot()