Initialize variable every loop so MCP devices don't accumulate too.
This commit is contained in:
parent
4b69495f82
commit
a333edcb28
@ -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…
Reference in New Issue
Block a user