From 53a8a8e6be55f92b70d8bfc137cbcbf58999a3cc Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 19 Dec 2017 07:28:54 +0000 Subject: [PATCH] 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 --- src/wayland/autotests/client/test_wayland_surface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wayland/autotests/client/test_wayland_surface.cpp b/src/wayland/autotests/client/test_wayland_surface.cpp index b19df50b73..e106f4c2cf 100644 --- a/src/wayland/autotests/client/test_wayland_surface.cpp +++ b/src/wayland/autotests/client/test_wayland_surface.cpp @@ -1029,6 +1029,7 @@ void TestWaylandSurface::testDisconnect() m_shm->destroy(); m_compositor->destroy(); m_queue->destroy(); + m_idleInhibitManager->destroy(); } void TestWaylandSurface::testOutput()