Commit 96f3a5ee authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

backends/drm: Fix dangling connectors in m_allObjects

We add connectors to m_allObjects but never remove them.

CCBUG: 457002
parent 5aef4166
Pipeline #208411 passed with stage
in 28 minutes and 19 seconds
......@@ -287,6 +287,7 @@ bool DrmGpu::updateOutputs()
if (stillExists) {
it++;
} else {
m_allObjects.removeOne(it->get());
it = m_connectors.erase(it);
}
}
......@@ -318,6 +319,7 @@ bool DrmGpu::updateOutputs()
return conn.get() == output->connector();
});
Q_ASSERT(it != m_connectors.end());
m_allObjects.removeOne(it->get());
m_connectors.erase(it);
}
QTimer::singleShot(50, m_platform, &DrmBackend::updateOutputs);
......
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