From 119bbf863ba8ec16a38ed7eb9e4d2b5476793cb4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Dec 2008 03:40:40 +0000 Subject: 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 --- src/engine/JackAudioDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) 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::iterator i = _ports.begin(); i != _ports.end(); ++i) + (*i)->unregister(); _is_activated = false; jack_deactivate(_client); _jack_thread->stop(); -- cgit v1.2.1