diff options
Diffstat (limited to 'src/engine/Engine.cpp')
-rw-r--r-- | src/engine/Engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index eb9e2aa8..b5cbfdb4 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -234,13 +234,13 @@ Engine::deactivate() if ((*i)->as_node() != NULL && (*i)->as_node()->parent() == NULL) (*i)->as_node()->deactivate();*/ + _audio_driver->deactivate(); + if (_midi_driver != NULL) { _midi_driver->deactivate(); delete _midi_driver; _midi_driver = NULL; } - - _audio_driver->deactivate(); _audio_driver->root_patch()->deactivate(); |