Fix ASAN warning

Don't leak the MockWorkspace, no other test does.
This commit is contained in:
Aleix Pol 2020-09-02 13:13:16 +02:00
parent 2d1f276c2c
commit f5a75e70dc

View file

@ -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();