13
0

fix other potential crashes with non-existing plugins and presets caused by indiscriminate use of vector_delete<T>

This commit is contained in:
Paul Davis 2013-03-20 17:15:08 -04:00
parent a1a8794dad
commit 4caecfa310

View File

@ -278,9 +278,10 @@ PluginManager::ladspa_discover_from_path (string /*path*/)
for (x = plugin_objects->begin(); x != plugin_objects->end (); ++x) { for (x = plugin_objects->begin(); x != plugin_objects->end (); ++x) {
ladspa_discover (**x); ladspa_discover (**x);
} }
}
vector_delete (plugin_objects); vector_delete (plugin_objects);
}
return ret; return ret;
} }
@ -356,10 +357,10 @@ PluginManager::add_lrdf_data (const string &path)
warning << "Could not parse rdf file: " << uri << endmsg; warning << "Could not parse rdf file: " << uri << endmsg;
} }
} }
}
vector_delete (rdf_files); vector_delete (rdf_files);
} }
}
int int
PluginManager::ladspa_discover (string path) PluginManager::ladspa_discover (string path)
@ -579,9 +580,10 @@ PluginManager::windows_vst_discover_from_path (string path)
for (x = plugin_objects->begin(); x != plugin_objects->end (); ++x) { for (x = plugin_objects->begin(); x != plugin_objects->end (); ++x) {
windows_vst_discover (**x); windows_vst_discover (**x);
} }
}
vector_delete (plugin_objects); vector_delete (plugin_objects);
}
return ret; return ret;
} }
@ -684,9 +686,10 @@ PluginManager::lxvst_discover_from_path (string path)
for (x = plugin_objects->begin(); x != plugin_objects->end (); ++x) { for (x = plugin_objects->begin(); x != plugin_objects->end (); ++x) {
lxvst_discover (**x); lxvst_discover (**x);
} }
}
vector_delete (plugin_objects); vector_delete (plugin_objects);
}
return ret; return ret;
} }