Commit 445289d1 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Fix leak in test

Unregister an interface when we're done with it. This also ensures we
don't have several running in parallel as well.
parent c9c1c3ae
......@@ -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);
......
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