mirror of https://github.com/AxioDL/amuse.git
Minor engine lifetime fix
This commit is contained in:
parent
b26ad4c446
commit
56f1bf7bff
|
@ -13,8 +13,9 @@ namespace amuse
|
||||||
|
|
||||||
Engine::~Engine()
|
Engine::~Engine()
|
||||||
{
|
{
|
||||||
while (m_activeSequencers.size())
|
for (std::shared_ptr<Sequencer>& seq : m_activeSequencers)
|
||||||
m_activeSequencers.front()->_destroy();
|
if (!seq->m_destroyed)
|
||||||
|
seq->_destroy();
|
||||||
while (m_activeSubmixes.size())
|
while (m_activeSubmixes.size())
|
||||||
removeSubmix(&m_activeSubmixes.front());
|
removeSubmix(&m_activeSubmixes.front());
|
||||||
for (std::shared_ptr<Emitter>& emitter : m_activeEmitters)
|
for (std::shared_ptr<Emitter>& emitter : m_activeEmitters)
|
||||||
|
|
Loading…
Reference in New Issue