Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
c2b2127f
Commit
c2b2127f
authored
Feb 25, 2021
by
Xaver Hugl
Browse files
DrmGpu: add gbm device nullptr check
BUG: 433145
(cherry picked from commit
1f7e794b
)
parent
a4eede95
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/platforms/drm/drm_gpu.cpp
View file @
c2b2127f
...
...
@@ -85,7 +85,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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment