From eff6a6954417af67f7673ddb5167a10f297ea61f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 2 Mar 2016 08:16:23 +0100 Subject: [PATCH] [autotest] Fix crash in TestWindowManagement::cleanup Didn't delete the m_windowManagement causing a crash on teardown. --- .../autotests/client/test_wayland_windowmanagement.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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;