drm: destroy the gbm device after we are done with all of the objects
Just in case they still need to interact with gbm
This commit is contained in:
parent
300f28a5a9
commit
d999aa6c6a
1 changed files with 5 additions and 5 deletions
|
@ -84,16 +84,16 @@ DrmGpu::~DrmGpu()
|
|||
if (m_eglDisplay != EGL_NO_DISPLAY) {
|
||||
eglTerminate(m_eglDisplay);
|
||||
}
|
||||
#if HAVE_GBM
|
||||
if (m_gbmDevice) {
|
||||
gbm_device_destroy(m_gbmDevice);
|
||||
}
|
||||
#endif
|
||||
qDeleteAll(m_outputs);
|
||||
qDeleteAll(m_crtcs);
|
||||
qDeleteAll(m_connectors);
|
||||
qDeleteAll(m_planes);
|
||||
delete m_socketNotifier;
|
||||
#if HAVE_GBM
|
||||
if (m_gbmDevice) {
|
||||
gbm_device_destroy(m_gbmDevice);
|
||||
}
|
||||
#endif
|
||||
m_backend->session()->closeRestricted(m_fd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue