diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-22 15:50:01 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-22 15:50:23 +0100 |
| commit | e91513a5e8953cfbb69320d94e495ccf2d4d58f3 (patch) | |
| tree | bf6d71e992e7b84b22e1c5c689169fb0393027be /src/plugins/PluginSystem.cpp | |
| parent | 450343b7b83ba659f6a932092aff922cc1cddd2b (diff) | |
pluginapi: unregister callbacks on lost ptrs
Diffstat (limited to 'src/plugins/PluginSystem.cpp')
| -rw-r--r-- | src/plugins/PluginSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/PluginSystem.cpp b/src/plugins/PluginSystem.cpp index ae87aedb..95a82dde 100644 --- a/src/plugins/PluginSystem.cpp +++ b/src/plugins/PluginSystem.cpp @@ -121,7 +121,7 @@ void CPluginSystem::unloadPlugin(const CPlugin* plugin, bool eject) { // save these two for dlclose and a log, // as erase_if will kill the pointer - const auto PLNAME = plugin->name; + const auto PLNAME = plugin->name; const auto PLHANDLE = plugin->m_pHandle; std::erase_if(m_vLoadedPlugins, [&](const auto& other) { return other->m_pHandle == PLHANDLE; }); |
