From 5c93f6947a04163c6ea8299e8721b923bea2fb9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Zag=C3=B3rowski?= Date: Wed, 1 Mar 2023 00:11:49 +0100 Subject: Unload plugins on compositor cleanup (#1662) --- src/Compositor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 18bdaaab..26565b18 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -285,6 +285,10 @@ void CCompositor::cleanup() { m_bIsShuttingDown = true; + // unload all remaining plugins while the compositor is + // still in a normal working state. + g_pPluginSystem->unloadAllPlugins(); + m_pLastFocus = nullptr; m_pLastWindow = nullptr; -- cgit v1.2.3