fix other potential crashes with non-existing plugins and presets caused by indiscriminate use of vector_delete<T>
This commit is contained in:
parent
a1a8794dad
commit
4caecfa310
@ -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,9 +357,9 @@ 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
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user