summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/evas/engines/wayland_shm/evas_dmabuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
index ed8e1b1..c713b62 100644
--- a/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_dmabuf.c
@@ -484,6 +484,7 @@ _evas_dmabuf_buffer_destroy(Dmabuf_Buffer *b)
484 b->surface = NULL; 484 b->surface = NULL;
485 return; 485 return;
486 } 486 }
487 if (b->fd != -1) close(b->fd);
487 /* The buffer manager may have been destroyed already if we're 488 /* The buffer manager may have been destroyed already if we're
488 * doing fallback */ 489 * doing fallback */
489 if (buffer_manager) buffer_manager->discard(b); 490 if (buffer_manager) buffer_manager->discard(b);
@@ -644,6 +645,7 @@ _evas_dmabuf_buffer_init(Dmabuf_Surface *s, int w, int h)
644 out = calloc(1, sizeof(Dmabuf_Buffer)); 645 out = calloc(1, sizeof(Dmabuf_Buffer));
645 if (!out) return NULL; 646 if (!out) return NULL;
646 647
648 out->fd = -1;
647 out->surface = s; 649 out->surface = s;
648 out->bh = bm->alloc(bm, "name", w, h, &out->stride, &out->fd); 650 out->bh = bm->alloc(bm, "name", w, h, &out->stride, &out->fd);
649 if (!out->bh) 651 if (!out->bh)