mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
drm: fix crasher in unload_backend
we were freeing the state struct and then closing items in it.
This commit is contained in:
parent
ed5aa69d4a
commit
d37da49aca
1 changed files with 4 additions and 3 deletions
|
|
@ -707,13 +707,14 @@ unload_backend (ply_renderer_backend_t *backend)
|
|||
|
||||
ply_trace ("unloading backend");
|
||||
|
||||
destroy_backend (backend);
|
||||
backend = NULL;
|
||||
|
||||
if (backend->device_fd >= 0) {
|
||||
drmClose (backend->device_fd);
|
||||
backend->device_fd = -1;
|
||||
}
|
||||
|
||||
destroy_backend (backend);
|
||||
backend = NULL;
|
||||
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue