diff --git a/plugins/platforms/wayland/egl_wayland_backend.cpp b/plugins/platforms/wayland/egl_wayland_backend.cpp index 67532178a8..9113a96f33 100644 --- a/plugins/platforms/wayland/egl_wayland_backend.cpp +++ b/plugins/platforms/wayland/egl_wayland_backend.cpp @@ -137,7 +137,7 @@ void EglWaylandBackend::cleanupSurfaces() bool EglWaylandBackend::createEglWaylandOutput(WaylandOutput *waylandOutput) { auto *output = new EglWaylandOutput(waylandOutput, this); - if (output->init(this)) { + if (!output->init(this)) { return false; } m_outputs << output;