Fix heap-use-after-free in TestWaylandShell::testClientDisconnecting
This commit is contained in:
parent
bbbfb48f48
commit
2b8900daf5
1 changed files with 10 additions and 0 deletions
|
@ -835,6 +835,16 @@ void TestWaylandShell::testClientDisconnecting()
|
|||
m_thread = nullptr;
|
||||
|
||||
QVERIFY(shellSurfaceUnboundSpy.wait());
|
||||
|
||||
ps->destroy();
|
||||
s->destroy();
|
||||
ps2->destroy();
|
||||
s2->destroy();
|
||||
m_pointer->destroy();
|
||||
m_seat->destroy();
|
||||
m_shell->destroy();
|
||||
m_compositor->destroy();
|
||||
m_queue->destroy();
|
||||
}
|
||||
|
||||
QTEST_GUILESS_MAIN(TestWaylandShell)
|
||||
|
|
Loading…
Reference in a new issue