commit | 73bdc0ce85583f65632d4de4b167295dbb06ee6d | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Wed Sep 04 22:32:50 2013 -0700 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Wed Sep 04 22:32:50 2013 -0700 |
tree | 8edaae7482dbb4bf0a5e2605e5750e06280d9f8f | |
parent | 3f7fcf83f6b1c9004aa20c936f10de8118d8ed8e [diff] [blame] |
xwm: Fix fd leak in weston_wm_send_data() The call to source->send(source, mime_type, p[1]); dups the fd, and we have to close p[1] to not leak it.
diff --git a/src/xwayland/selection.c b/src/xwayland/selection.c index 76063df..b694477 100644 --- a/src/xwayland/selection.c +++ b/src/xwayland/selection.c
@@ -447,6 +447,7 @@ source = seat->selection_data_source; source->send(source, mime_type, p[1]); + close(p[1]); } static void