mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-02-03 09:44:01 -05:00
pluginmanager: remove append of pluginLoader on m_plugins.
Seen that it is not used we can remove from the Plugin() object and delete the instance at the end.
This commit is contained in:
parent
ab2d9270ac
commit
c24a37d011
@ -174,8 +174,10 @@ void PluginManager::loadPluginsDir(const QDir& dir)
|
||||
continue;
|
||||
}
|
||||
|
||||
delete(pluginLoader);
|
||||
|
||||
qInfo("PluginManager::loadPluginsDir: loaded plugin %s", qPrintable(fileName));
|
||||
m_plugins.append(Plugin(fileName, pluginLoader, instance));
|
||||
m_plugins.append(Plugin(fileName, instance));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,12 +25,10 @@ public:
|
||||
struct Plugin
|
||||
{
|
||||
QString filename;
|
||||
QPluginLoader* loader;
|
||||
PluginInterface* pluginInterface;
|
||||
|
||||
Plugin(const QString& _filename, QPluginLoader* pluginLoader, PluginInterface* _plugin) :
|
||||
Plugin(const QString& _filename, PluginInterface* _plugin) :
|
||||
filename(_filename),
|
||||
loader(pluginLoader),
|
||||
pluginInterface(_plugin)
|
||||
{ }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user