[autotests] Fix heap-use-after-free

Thanks build.kde.org!
This commit is contained in:
Martin Gräßlin 2016-03-29 11:08:04 +02:00
parent 746fc49bb6
commit c1b709b250

View file

@ -415,6 +415,7 @@ void DebugConsoleTest::testWaylandClient()
QEXPECT_FAIL("", "Deleting a ShellSurface does not result in the server removing the ShellClient", Continue);
QVERIFY(rowsRemovedSpy.wait());
// also destroy the connection to ensure the ShellSurface goes away
surface.reset();
shell.reset();
shm.reset();
compositor.reset();