Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorChristian Rauch <Rauch.Christian@gmx.de>2021-07-22 23:41:28 +0300
committerChristian Rauch <Rauch.Christian@gmx.de>2021-07-24 14:30:13 +0300
commit1029577a51f43d96056172e4653f92d94fe8f75e (patch)
tree376ae8480b5fe2737efc687846ead4f1313214b3 /intern
parent05c7d935e77025b87c5593dcbae38de42ed5a3ce (diff)
GHOST/wayland: explicitly delete 'GHOST_SystemWayland' when fallback to X11
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_ISystem.cpp2
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();