DrmGpu: add gbm device nullptr check
BUG: 433145
This commit is contained in:
parent
37c145e94b
commit
1f7e794b82
1 changed files with 3 additions and 1 deletions
|
@ -74,7 +74,9 @@ DrmGpu::~DrmGpu()
|
|||
eglTerminate(m_eglDisplay);
|
||||
}
|
||||
#if HAVE_GBM
|
||||
if (m_gbmDevice) {
|
||||
gbm_device_destroy(m_gbmDevice);
|
||||
}
|
||||
#endif
|
||||
qDeleteAll(m_crtcs);
|
||||
qDeleteAll(m_connectors);
|
||||
|
|
Loading…
Reference in a new issue