Initialize variable every loop so MCP devices don't accumulate too.

This commit is contained in:
Len Ovens 2015-10-03 13:15:18 -07:00
parent 4b69495f82
commit a333edcb28

View File

@ -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;