summaryrefslogtreecommitdiff
path: root/libs/ardour/control_protocol_manager.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-11 02:34:44 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-11 02:34:44 +0000
commit173354c8470b77edeb920df026c0dabfc9af50d2 (patch)
tree7bc74982002b878a5908f324e652d42219de4cbd /libs/ardour/control_protocol_manager.cc
parente8fede43eeda1fba263f79ac5647bc7abf955733 (diff)
Fix a few tiny memory leaks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8244 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/control_protocol_manager.cc')
-rw-r--r--libs/ardour/control_protocol_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc
index 1e793bb71b..662d41064a 100644
--- a/libs/ardour/control_protocol_manager.cc
+++ b/libs/ardour/control_protocol_manager.cc
@@ -210,12 +210,12 @@ ControlProtocolManager::control_protocol_discover (string path)
if ((descriptor = get_descriptor (path)) != 0) {
- ControlProtocolInfo* cpi = new ControlProtocolInfo ();
-
if (!descriptor->probe (descriptor)) {
info << string_compose (_("Control protocol %1 not usable"), descriptor->name) << endmsg;
} else {
+ ControlProtocolInfo* cpi = new ControlProtocolInfo ();
+
cpi->descriptor = descriptor;
cpi->name = descriptor->name;
cpi->path = path;