From f5a75e70dc8d7564fde2859110b008223895eb89 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 2 Sep 2020 13:13:16 +0200 Subject: [PATCH] Fix ASAN warning Don't leak the MockWorkspace, no other test does. --- autotests/test_screen_edges.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autotests/test_screen_edges.cpp b/autotests/test_screen_edges.cpp index 7e9e9213b5..0a217721f9 100644 --- a/autotests/test_screen_edges.cpp +++ b/autotests/test_screen_edges.cpp @@ -120,7 +120,7 @@ void TestScreenEdges::init() KWin::Cursors::self()->setMouse(new KWin::Cursor(this)); using namespace KWin; - new MockWorkspace; + new MockWorkspace(this); auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); Screens::create();