mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 05:18:01 +02:00
compositor-fbdev: Fix a fd leak in the fbdev backend
fbdev_frame_buffer_map() closes the fb fd, so we have to close it manually in case we're using the hybris renderer (ie !pixman).
This commit is contained in:
parent
95659c0321
commit
8ac6a2da07
1 changed files with 2 additions and 0 deletions
|
|
@ -524,6 +524,8 @@ fbdev_output_create(struct fbdev_compositor *compositor,
|
|||
weston_log("Mapping frame buffer failed.\n");
|
||||
goto out_free;
|
||||
}
|
||||
} else {
|
||||
close(fb_fd);
|
||||
}
|
||||
|
||||
output->base.start_repaint_loop = fbdev_output_start_repaint_loop;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue