[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:
parent
d72188130f
commit
a28b9ee1e3
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue