summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-21 03:40:40 +0000
committerDavid Robillard <d@drobilla.net>2008-12-21 03:40:40 +0000
commit119bbf863ba8ec16a38ed7eb9e4d2b5476793cb4 (patch)
tree38d9f235ab8dc2fde07fa99ee1c0f5b172b1305d
parent038fe000ec5a99c3e6219532c3b0aaed3e319a63 (diff)
downloadingen-119bbf863ba8ec16a38ed7eb9e4d2b5476793cb4.tar.gz
ingen-119bbf863ba8ec16a38ed7eb9e4d2b5476793cb4.tar.bz2
ingen-119bbf863ba8ec16a38ed7eb9e4d2b5476793cb4.zip
Fix crash on exit when Jack ports be hangin' 'round (fix ticket #307).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1885 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/engine/JackAudioDriver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine/JackAudioDriver.cpp b/src/engine/JackAudioDriver.cpp
index e5170127..fddbcd94 100644
--- a/src/engine/JackAudioDriver.cpp
+++ b/src/engine/JackAudioDriver.cpp
@@ -190,6 +190,8 @@ void
JackAudioDriver::deactivate()
{
if (_is_activated) {
+ for (Raul::List<JackAudioPort*>::iterator i = _ports.begin(); i != _ports.end(); ++i)
+ (*i)->unregister();
_is_activated = false;
jack_deactivate(_client);
_jack_thread->stop();