From a7a724737a79b8fb7cf773a8d3795cda74d97057 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Wed, 9 Oct 2024 19:45:16 +0200 Subject: [PATCH] Unload rendering plugin also on Windows (#1074) Signed-off-by: Silvio Traversaro --- src/RenderEngineManager.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/RenderEngineManager.cc b/src/RenderEngineManager.cc index 8e3a6f0f4..54ba3a591 100644 --- a/src/RenderEngineManager.cc +++ b/src/RenderEngineManager.cc @@ -563,14 +563,10 @@ bool RenderEngineManagerPrivate::UnloadEnginePlugin( std::string pluginName = it->second; this->enginePlugins.erase(it); -#ifndef _WIN32 - // Unloading the plugin on windows causes tests to crash on exit - // see issue #45 if (!this->pluginLoader.ForgetLibraryOfPlugin(pluginName)) { gzerr << "Failed to unload plugin: " << pluginName << std::endl; } -#endif std::lock_guard lock(this->enginesMutex); auto engineIt = this->engines.find(_engineName);