projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dddf65
)
Initialize variable every loop so MCP profiles don't accumulate.
author
Len Ovens
<len@ovenwerks.net>
Sat, 3 Oct 2015 20:06:34 +0000
(13:06 -0700)
committer
Len Ovens
<len@ovenwerks.net>
Sat, 3 Oct 2015 20:06:34 +0000
(13:06 -0700)
libs/surfaces/mackie/device_profile.cc
patch
|
blob
|
history
diff --git
a/libs/surfaces/mackie/device_profile.cc
b/libs/surfaces/mackie/device_profile.cc
index 46e13f90b8c26aaca9f34436537a6a5bee3bab98..57793ecdbec73ed37673591428202ff0c41bb5ab 100644
(file)
--- a/
libs/surfaces/mackie/device_profile.cc
+++ b/
libs/surfaces/mackie/device_profile.cc
@@
-90,7
+90,6
@@
devprofile_filter (const string &str, void* /*arg*/)
void
DeviceProfile::reload_device_profiles ()
{
- DeviceProfile dp;
vector<string> s;
vector<string> devprofiles;
Searchpath spath (devprofile_search_path());
@@
-105,6
+104,7
@@
DeviceProfile::reload_device_profiles ()
for (vector<string>::iterator i = devprofiles.begin(); i != devprofiles.end(); ++i) {
string fullpath = *i;
+ DeviceProfile dp; // has to be initial every loop or info from last added.
XMLTree tree;