diff options
author | Len Ovens <len@ovenwerks.net> | 2015-10-03 13:06:34 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2015-10-03 13:06:34 -0700 |
commit | 4b69495f828dcfda7de42020aa467a9969ecf4ee (patch) | |
tree | 953f66d7a57d3481b14767b8d30450e3a8a176e4 /libs | |
parent | 2dddf6504ba5b82181a28f6f20309ce5a60b5309 (diff) |
Initialize variable every loop so MCP profiles don't accumulate.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/mackie/device_profile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/device_profile.cc b/libs/surfaces/mackie/device_profile.cc index 46e13f90b8..57793ecdbe 100644 --- 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; |