From a28b9ee1e31e17ebec4179bcc5d1291998d6c355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 11 Nov 2015 09:03:42 +0100 Subject: [PATCH] [autotests] Delete connection in thread in TestWindowmanagement If that fixes the ASAN error, we should do it in all tests. --- .../autotests/client/test_wayland_windowmanagement.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wayland/autotests/client/test_wayland_windowmanagement.cpp b/src/wayland/autotests/client/test_wayland_windowmanagement.cpp index ccaada0eaa..6488932277 100644 --- a/src/wayland/autotests/client/test_wayland_windowmanagement.cpp +++ b/src/wayland/autotests/client/test_wayland_windowmanagement.cpp @@ -206,12 +206,14 @@ void TestWindowManagement::cleanup() m_registry = nullptr; } if (m_thread) { + if (m_connection) { + m_connection->deleteLater(); + } m_thread->quit(); m_thread->wait(); delete m_thread; m_thread = nullptr; } - delete m_connection; m_connection = nullptr; delete m_display;