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() ...@@ -85,7 +85,9 @@ DrmGpu::~DrmGpu()
eglTerminate(m_eglDisplay); eglTerminate(m_eglDisplay);
} }
gbm_device_destroy(m_gbmDevice); if (m_gbmDevice) {
#endif #endif
qDeleteAll(m_crtcs); qDeleteAll(m_crtcs);
qDeleteAll(m_connectors); 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