Fix error in WaylandSurface::testDisconnect

Summary:
This test deletes the client wayland connection.

We then finish the test and call test cleanup which
releases m_idleInhititManager.
Calling release after the connection is destroyed is an error.

Hence the explicit destroy.

Test Plan:
Built tests with ASAN
No more crash

Reviewers: #plasma, graesslin

Reviewed By: #plasma, graesslin

Subscribers: plasma-devel, #frameworks

Tags: #frameworks, #plasma

Differential Revision: https://phabricator.kde.org/D9402
This commit is contained in:
David Edmundson 2017-12-19 07:28:54 +00:00
parent 19ade014bc
commit 53a8a8e6be

View file

@ -1029,6 +1029,7 @@ void TestWaylandSurface::testDisconnect()
m_shm->destroy();
m_compositor->destroy();
m_queue->destroy();
m_idleInhibitManager->destroy();
}
void TestWaylandSurface::testOutput()