mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Initialize variable every loop so MCP devices don't accumulate too.
This commit is contained in:
parent
4b69495f82
commit
a333edcb28
1 changed files with 16 additions and 16 deletions
|
|
@ -511,7 +511,6 @@ devinfo_filter (const string &str, void* /*arg*/)
|
|||
void
|
||||
DeviceInfo::reload_device_info ()
|
||||
{
|
||||
DeviceInfo di;
|
||||
vector<string> s;
|
||||
vector<string> devinfos;
|
||||
Searchpath spath (devinfo_search_path());
|
||||
|
|
@ -527,6 +526,7 @@ DeviceInfo::reload_device_info ()
|
|||
|
||||
for (vector<string>::iterator i = devinfos.begin(); i != devinfos.end(); ++i) {
|
||||
string fullpath = *i;
|
||||
DeviceInfo di; // has to be initial every loop or info from last added.
|
||||
|
||||
XMLTree tree;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue