Commit c2b2127f authored by Xaver Hugl's avatar Xaver Hugl
Browse files

DrmGpu: add gbm device nullptr check

BUG: 433145
(cherry picked from commit 1f7e794b)
parent a4eede95
......@@ -85,7 +85,9 @@ DrmGpu::~DrmGpu()
eglTerminate(m_eglDisplay);
}
#if HAVE_GBM
gbm_device_destroy(m_gbmDevice);
if (m_gbmDevice) {
gbm_device_destroy(m_gbmDevice);
}
#endif
qDeleteAll(m_crtcs);
qDeleteAll(m_connectors);
......
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