Commit f1a779d9 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

tests: clean outputManagement when cleaning interfaces

Otherwise we get crashes trying to access unexisting objects.
parent 4ed0fe31
......@@ -503,6 +503,8 @@ void destroyWaylandConnection()
s_waylandConnection.inputPanelV1 = nullptr;
delete s_waylandConnection.layerShellV1;
s_waylandConnection.layerShellV1 = nullptr;
delete s_waylandConnection.outputManagement;
s_waylandConnection.outputManagement = nullptr;
if (s_waylandConnection.thread) {
QSignalSpy spy(s_waylandConnection.connection, &QObject::destroyed);
s_waylandConnection.connection->deleteLater();
......
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