Commit 54ce4007 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

platforms/drm: don't delete connectors in DrmGpu::removeOutput

In DrmGpu::updateOutputs the connector is in the oldConnectors vector,
in DrmGpu::~DrmGpu it's in m_connectors. In both cases that's causing a
double free.

BUG: 438789
parent a6b31853
......@@ -429,8 +429,6 @@ void DrmGpu::removeOutput(DrmOutput *output)
emit outputRemoved(output);
output->teardown();
output->m_crtc = nullptr;
m_connectors.removeOne(output->m_conn);
delete output->m_conn;
output->m_conn = nullptr;
if (output->m_primaryPlane) {
m_unusedPlanes << output->m_primaryPlane;
......
Markdown is supported
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