mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-20 14:47:49 +02:00
null checks -- fix Linux crash in drag-dropping files onto app icon?
This commit is contained in:
parent
889284555b
commit
50d6e75185
@ -514,6 +514,9 @@ void ModuleManager::FindAllPlugins(PluginIDList & providers, wxArrayString & pat
|
|||||||
ModuleInterface *module =
|
ModuleInterface *module =
|
||||||
static_cast<ModuleInterface *>(CreateProviderInstance(providerID, modPaths[i]));
|
static_cast<ModuleInterface *>(CreateProviderInstance(providerID, modPaths[i]));
|
||||||
|
|
||||||
|
if (!module)
|
||||||
|
continue;
|
||||||
|
|
||||||
wxArrayString newpaths = module->FindPluginPaths(pm);
|
wxArrayString newpaths = module->FindPluginPaths(pm);
|
||||||
for (size_t i = 0, cnt = newpaths.size(); i < cnt; i++)
|
for (size_t i = 0, cnt = newpaths.size(); i < cnt; i++)
|
||||||
{
|
{
|
||||||
|
@ -1759,6 +1759,9 @@ bool PluginManager::DropFile(const wxString &fileName)
|
|||||||
{
|
{
|
||||||
auto module = static_cast<ModuleInterface *>
|
auto module = static_cast<ModuleInterface *>
|
||||||
(mm.CreateProviderInstance(plug->GetID(), plug->GetPath()));
|
(mm.CreateProviderInstance(plug->GetID(), plug->GetPath()));
|
||||||
|
if (! module)
|
||||||
|
continue;
|
||||||
|
|
||||||
const auto &ff = module->InstallPath();
|
const auto &ff = module->InstallPath();
|
||||||
auto extensions = module->FileExtensions();
|
auto extensions = module->FileExtensions();
|
||||||
if (!ff.empty() &&
|
if (!ff.empty() &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user