From: timon37 <[email protected]>
Date: Tue, 24 Apr 2012 22:29:51 +0200
Subject: [PATCH] Fix fd leak on window resize/unrealize/etc.
---
src/wlshm.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/wlshm.c b/src/wlshm.c
index 8f5cf8a..e71bd95 100644
--- a/src/wlshm.c
+++ b/src/wlshm.c
@@ -225,6 +225,7 @@ wlshm_free_window_pixmap(WindowPtr pWindow)
pixmap->devPrivate.fptr = d->orig;
memcpy(d->orig, d->data, d->bytes);
munmap(d->data, d->bytes);
+ close(d->fd);
free(d);
}
--
1.7.8.5
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel