diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2021-07-22 23:41:28 +0300 |
---|---|---|
committer | Christian Rauch <Rauch.Christian@gmx.de> | 2021-07-24 14:30:13 +0300 |
commit | 1029577a51f43d96056172e4653f92d94fe8f75e (patch) | |
tree | 376ae8480b5fe2737efc687846ead4f1313214b3 /intern | |
parent | 05c7d935e77025b87c5593dcbae38de42ed5a3ce (diff) |
GHOST/wayland: explicitly delete 'GHOST_SystemWayland' when fallback to X11
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_ISystem.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |