scan-build: fix a couple of minor warnings from a scan-build run

This commit is contained in:
Daniel Eklöf 2019-11-05 10:39:36 +01:00
parent 9abc5ca971
commit 15b12f45c6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 7 additions and 5 deletions

2
shm.c
View file

@ -148,7 +148,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); pool_fd = -1;
close(pool_fd);
/* One pixman image for each worker thread (do we really need multiple?) */
pix = pixman_image_create_bits_no_clear(