GHOST/wayland: explicitly delete 'GHOST_SystemWayland' when fallback to X11
This commit is contained in:
@@ -60,6 +60,8 @@ GHOST_TSuccess GHOST_ISystem::createSystem()
|
|||||||
}
|
}
|
||||||
catch (const std::runtime_error &) {
|
catch (const std::runtime_error &) {
|
||||||
/* fallback to X11. */
|
/* fallback to X11. */
|
||||||
|
delete m_system;
|
||||||
|
m_system = nullptr;
|
||||||
}
|
}
|
||||||
if (!m_system) {
|
if (!m_system) {
|
||||||
m_system = new GHOST_SystemX11();
|
m_system = new GHOST_SystemX11();
|
||||||
|
Reference in New Issue
Block a user