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

This commit is contained in:
Christian Rauch 2021-07-22 21:41:28 +01:00
parent 05c7d935e7
commit 1029577a51
1 changed files with 2 additions and 0 deletions

View File

@ -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();