diff --git a/src/wayland/autotests/client/test_wayland_windowmanagement.cpp b/src/wayland/autotests/client/test_wayland_windowmanagement.cpp index 6488932277..a9d8f43450 100644 --- a/src/wayland/autotests/client/test_wayland_windowmanagement.cpp +++ b/src/wayland/autotests/client/test_wayland_windowmanagement.cpp @@ -201,6 +201,10 @@ void TestWindowManagement::cleanup() delete m_queue; m_queue = nullptr; } + if (m_windowManagement) { + delete m_windowManagement; + m_windowManagement = nullptr; + } if (m_registry) { delete m_registry; m_registry = nullptr;