diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-10 17:01:30 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-10 17:06:10 +0000 |
| commit | 867dc836abb8904f324f5904d8714012fab33bf3 (patch) | |
| tree | 9aa0acb339c41f732a6c6481aaf38dd3dbae6dc9 | |
| parent | shm: try to mmap with MAP_UNINITIALIZED (diff) | |
shm: set pool_fd=1 after closing it, to avoid double-closing on error
| -rw-r--r-- | shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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( |
