DrmGpu: add gbm device nullptr check

BUG: 433145
This commit is contained in:
Xaver Hugl 2021-02-25 19:13:57 +01:00
parent 37c145e94b
commit 1f7e794b82

View file

@ -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);