aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shm.c b/shm.c
index 00804400..cad60aae 100644
--- a/shm.c
+++ b/shm.c
@@ -420,6 +420,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie,
/* We only need to keep the pool FD open if we’re going to SHM
* scroll it */
close(pool_fd);
+ ret->fd = -1;
}
return ret;