[autotests] Delete connection in thread in TestWindowmanagement

If that fixes the ASAN error, we should do it in all tests.
This commit is contained in:
Martin Gräßlin 2015-11-11 09:03:42 +01:00
parent d72188130f
commit a28b9ee1e3

View file

@ -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;