summaryrefslogtreecommitdiffstats
path: root/src/engine/JackMidiDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-11 19:31:17 +0000
committerDavid Robillard <d@drobilla.net>2009-05-11 19:31:17 +0000
commitcb5287d0379287c461a0ac5b950161244a7fa53b (patch)
tree135aa05d505614ab3a503a3df96324b8a3026126 /src/engine/JackMidiDriver.cpp
parent698c38587bd4f0133a132dc363098ff8298ec47b (diff)
downloadingen-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.cpp3
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();
}