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() ...@@ -503,6 +503,8 @@ void destroyWaylandConnection()
s_waylandConnection.inputPanelV1 = nullptr; s_waylandConnection.inputPanelV1 = nullptr;
delete s_waylandConnection.layerShellV1; delete s_waylandConnection.layerShellV1;
s_waylandConnection.layerShellV1 = nullptr; s_waylandConnection.layerShellV1 = nullptr;
delete s_waylandConnection.outputManagement;
s_waylandConnection.outputManagement = nullptr;
if (s_waylandConnection.thread) { if (s_waylandConnection.thread) {
QSignalSpy spy(s_waylandConnection.connection, &QObject::destroyed); QSignalSpy spy(s_waylandConnection.connection, &QObject::destroyed);
s_waylandConnection.connection->deleteLater(); 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