diff options
author | David Robillard <d@drobilla.net> | 2009-05-11 19:31:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-11 19:31:17 +0000 |
commit | cb5287d0379287c461a0ac5b950161244a7fa53b (patch) | |
tree | 135aa05d505614ab3a503a3df96324b8a3026126 /src/engine/JackMidiDriver.cpp | |
parent | 698c38587bd4f0133a132dc363098ff8298ec47b (diff) | |
download | ingen-cb5287d0379287c461a0ac5b950161244a7fa53b.tar.gz ingen-cb5287d0379287c461a0ac5b950161244a7fa53b.tar.bz2 ingen-cb5287d0379287c461a0ac5b950161244a7fa53b.zip |
Fix subpatch MIDI IO.
Fixes tickets #323 and #332.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1974 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/JackMidiDriver.cpp')
-rw-r--r-- | src/engine/JackMidiDriver.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/JackMidiDriver.cpp b/src/engine/JackMidiDriver.cpp index 9f2f25d5..9551b6be 100644 --- a/src/engine/JackMidiDriver.cpp +++ b/src/engine/JackMidiDriver.cpp @@ -189,7 +189,10 @@ JackMidiDriver::activate() void JackMidiDriver::deactivate() { + for (Raul::List<JackMidiPort*>::iterator i = _ports.begin(); i != _ports.end(); ++i) + (*i)->unregister(); _is_activated = false; + _ports.clear(); } |