From 0b9c477199c5b47aaf04cfd270253708770a1938 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Thu, 3 Oct 2024 17:25:09 +0200 Subject: [PATCH] Unload rendering plugin also on Windows 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);