summaryrefslogtreecommitdiff
path: root/libs/ardour/control_protocol_manager.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-04-06 01:52:45 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-04-06 01:52:45 +0000
commit0f530372d285a618dfa51494bffa2100e3e20e8f (patch)
tree3b8ac9067292f6796e8a8b46b26fc3cb9d3712dd /libs/ardour/control_protocol_manager.cc
parent4605736d1d601d1698c295ebb2d6e6fce9d1b8cf (diff)
significant extensions to tranzport support
git-svn-id: svn://localhost/trunk/ardour2@446 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/control_protocol_manager.cc')
-rw-r--r--libs/ardour/control_protocol_manager.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc
index 4944816177..b89b83a29f 100644
--- a/libs/ardour/control_protocol_manager.cc
+++ b/libs/ardour/control_protocol_manager.cc
@@ -24,6 +24,14 @@ ControlProtocolManager::ControlProtocolManager ()
ControlProtocolManager::~ControlProtocolManager()
{
+ LockMonitor lm (protocols_lock, __LINE__, __FILE__);
+
+ for (list<ControlProtocol*>::iterator i = control_protocols.begin(); i != control_protocols.end(); ++i) {
+ delete (*i);
+ }
+
+ control_protocols.clear ();
+
}
void
@@ -54,13 +62,8 @@ ControlProtocolManager::startup (Session& s)
control_protocols.push_back (cpi->protocol);
}
- cerr << "start " << cpi->name << endl;
cpi->protocol->init ();
-
- cerr << "activate " << cpi->name << endl;
cpi->protocol->set_active (true);
-
- cerr << cpi->name << " now running\n";
}
}
}