summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Borowik <timon37@lavabit.com>2012-05-26 23:53:30 -0600
committerCorentin Chary <corentincj@iksaif.net>2012-05-28 18:12:57 +0200
commit7f7ba1b5be4cc481a131fc76fa81b5ff2589a20c (patch)
tree3f4dd3f90b8c2df34d1f11164a95fa8751e1bac4
parentc1ac77e3438d434119bc55f794088bef0faff589 (diff)
Fix fd leak on window resize/unrealize/etc.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
-rw-r--r--src/wlshm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wlshm.c b/src/wlshm.c
index 91c8099..216b03a 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);
}