mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
Initialize variable every loop so MCP profiles don't accumulate.
This commit is contained in:
parent
2dddf6504b
commit
4b69495f82
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,6 @@ devprofile_filter (const string &str, void* /*arg*/)
|
||||||
void
|
void
|
||||||
DeviceProfile::reload_device_profiles ()
|
DeviceProfile::reload_device_profiles ()
|
||||||
{
|
{
|
||||||
DeviceProfile dp;
|
|
||||||
vector<string> s;
|
vector<string> s;
|
||||||
vector<string> devprofiles;
|
vector<string> devprofiles;
|
||||||
Searchpath spath (devprofile_search_path());
|
Searchpath spath (devprofile_search_path());
|
||||||
|
|
@ -105,6 +104,7 @@ DeviceProfile::reload_device_profiles ()
|
||||||
|
|
||||||
for (vector<string>::iterator i = devprofiles.begin(); i != devprofiles.end(); ++i) {
|
for (vector<string>::iterator i = devprofiles.begin(); i != devprofiles.end(); ++i) {
|
||||||
string fullpath = *i;
|
string fullpath = *i;
|
||||||
|
DeviceProfile dp; // has to be initial every loop or info from last added.
|
||||||
|
|
||||||
XMLTree tree;
|
XMLTree tree;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue