[Bf-blender-cvs] [1029577a51f] master: GHOST/wayland: explicitly delete 'GHOST_SystemWayland' when fallback to X11

Christian Rauch noreply at git.blender.org
Sat Jul 24 13:40:22 CEST 2021


Commit: 1029577a51f43d96056172e4653f92d94fe8f75e
Author: Christian Rauch
Date:   Thu Jul 22 21:41:28 2021 +0100
Branches: master
https://developer.blender.org/rB1029577a51f43d96056172e4653f92d94fe8f75e

GHOST/wayland: explicitly delete 'GHOST_SystemWayland' when fallback to X11

===================================================================

M	intern/ghost/intern/GHOST_ISystem.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ISystem.cpp b/intern/ghost/intern/GHOST_ISystem.cpp
index 7c12bfe0306..d9fecda22a4 100644
--- a/intern/ghost/intern/GHOST_ISystem.cpp
+++ b/intern/ghost/intern/GHOST_ISystem.cpp
@@ -60,6 +60,8 @@ GHOST_TSuccess GHOST_ISystem::createSystem()
     }
     catch (const std::runtime_error &) {
       /* fallback to X11. */
+      delete m_system;
+      m_system = nullptr;
     }
     if (!m_system) {
       m_system = new GHOST_SystemX11();



More information about the Bf-blender-cvs mailing list