[PATCH] xf86-video-wlshm: Fix fd leak on window resize/unrealize/etc.
Tomasz Borowik
timon37 at lavabit.com
Tue Apr 24 13:32:57 PDT 2012
From: timon37 <timon37 at lavabit.com>
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
More information about the wayland-devel
mailing list