Commit f19fedb0 authored by Martin Flöser's avatar Martin Flöser
Browse files

[autotests] Cleanup surface handling in TestWindowManagement

For some reason two surfaces were created and the surface not cleaned
up before the connection thread exits.

This caused ASAN to complain.
parent 2867b841
......@@ -149,9 +149,6 @@ void TestWindowManagement::init()
m_surfaceInterface = serverSurfaceCreated.first().first().value<KWayland::Server::SurfaceInterface*>();
m_surface = m_compositor->createSurface(this);
void TestWindowManagement::testWindowTitle()
......@@ -192,6 +189,10 @@ void TestWindowManagement::cleanup()
delete m_surfaceInterface;
m_surfaceInterface = nullptr;
if (m_surface) {
delete m_surface;
m_surface = nullptr;
if (m_compositor) {
delete m_compositor;
m_compositor = nullptr;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment