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 s; vector devprofiles; Searchpath spath (devprofile_search_path()); @@ -105,6 +104,7 @@ DeviceProfile::reload_device_profiles () for (vector::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;