diff --git a/src/wayland/autotests/client/test_wayland_output.cpp b/src/wayland/autotests/client/test_wayland_output.cpp index ab884ffe0a..ef93cbbd9c 100644 --- a/src/wayland/autotests/client/test_wayland_output.cpp +++ b/src/wayland/autotests/client/test_wayland_output.cpp @@ -410,7 +410,7 @@ void TestWaylandOutput::testDpms() using namespace KWayland::Client; using namespace KWaylandServer; - new DpmsManagerInterface(m_display); + DpmsManagerInterface iface(m_display); // set Dpms on the Output QSignalSpy serverDpmsSupportedChangedSpy(m_serverOutput, &OutputInterface::dpmsSupportedChanged); @@ -505,7 +505,7 @@ void TestWaylandOutput::testDpmsRequestMode() using namespace KWaylandServer; // setup code - new DpmsManagerInterface(m_display); + DpmsManagerInterface iface(m_display); // set Dpms on the Output QSignalSpy serverDpmsSupportedChangedSpy(m_serverOutput, &OutputInterface::dpmsSupportedChanged);