From e91513a5e8953cfbb69320d94e495ccf2d4d58f3 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 22 Apr 2024 15:50:01 +0100 Subject: pluginapi: unregister callbacks on lost ptrs --- src/plugins/PluginSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/PluginSystem.cpp') 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; }); -- cgit v1.2.3