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.
dev
Kristian Høgsberg 11 years ago
parent 3f7fcf83f6
commit 73bdc0ce85
  1. 1
      src/xwayland/selection.c

@ -447,6 +447,7 @@ weston_wm_send_data(struct weston_wm *wm, xcb_atom_t target, const char *mime_ty
source = seat->selection_data_source;
source->send(source, mime_type, p[1]);
close(p[1]);
}
static void

Loading…
Cancel
Save