Commit 1f7e794b authored by Xaver Hugl's avatar Xaver Hugl
Browse files

DrmGpu: add gbm device nullptr check

BUG: 433145
parent 37c145e9
......@@ -74,7 +74,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);
......
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