mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05:00
shm: set pool_fd=1 after closing it, to avoid double-closing on error
This commit is contained in:
parent
7efe2c6c97
commit
867dc836ab
1 changed files with 1 additions and 1 deletions
2
shm.c
2
shm.c
|
|
@ -164,7 +164,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie)
|
|||
|
||||
/* We use the entire pool for our single buffer */
|
||||
wl_shm_pool_destroy(pool); pool = NULL;
|
||||
close(pool_fd);
|
||||
close(pool_fd); pool_fd = -1;
|
||||
|
||||
/* One pixman image for each worker thread (do we really need multiple?) */
|
||||
pix = pixman_image_create_bits_no_clear(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue