summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-06-19 20:38:19 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-06-19 20:38:19 +0000
commit422607acfe28dc10fd8b188d12582a8a8cb916b9 (patch)
treeea704071f69a542d99a6bfc393706707d556269a /libs/ardour/route.cc
parent82031d05e0f2f4500535a6e35cdc5199b0b2d3a0 (diff)
fix a huge mess with sends, involving incorrect GUI cleanup, an unhandled exception and as a result, bad reference counting of sends leading to ports never going away because the send was never deleted
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3484 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 7b645b5d49..f055543fe5 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -1092,19 +1092,18 @@ Route::remove_redirect (boost::shared_ptr<Redirect> redirect, void *src, uint32_
return -1;
}
- bool foo = false;
+ _have_internal_generator = false;
for (i = _redirects.begin(); i != _redirects.end(); ++i) {
boost::shared_ptr<PluginInsert> pi;
if ((pi = boost::dynamic_pointer_cast<PluginInsert>(*i)) != 0) {
if (pi->is_generator()) {
- foo = true;
+ _have_internal_generator = true;
+ break;
}
}
}
-
- _have_internal_generator = foo;
}
if (old_rmo != redirect_max_outs) {