diff options
Diffstat (limited to 'src/libs/engine/Engine.cpp')
-rw-r--r-- | src/libs/engine/Engine.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/engine/Engine.cpp b/src/libs/engine/Engine.cpp index f904ce2a..f79ccfd1 100644 --- a/src/libs/engine/Engine.cpp +++ b/src/libs/engine/Engine.cpp @@ -75,11 +75,6 @@ Engine::Engine(Ingen::Shared::World* world) Engine::~Engine() { deactivate(); - - for (size_t i=0; i < _process_slaves.size(); ++i) - delete _process_slaves[i]; - - _process_slaves.clear(); for (ObjectStore::Objects::const_iterator i = _object_store->objects().begin(); i != _object_store->objects().end(); ++i) { @@ -267,6 +262,12 @@ Engine::deactivate() _audio_driver->deactivate(); _audio_driver->root_patch()->deactivate(); + + for (size_t i=0; i < _process_slaves.size(); ++i) { + delete _process_slaves[i]; + } + + _process_slaves.clear(); // Finalize any lingering events (unlikely) //_post_processor->whip(); |