diff --git a/src/modules/xwayland/dnd.c b/src/modules/xwayland/dnd.c index 47c5d9569..505440352 100644 --- a/src/modules/xwayland/dnd.c +++ b/src/modules/xwayland/dnd.c @@ -399,7 +399,7 @@ _xwl_selection_request(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_X_Event_Sel p->fdh = ecore_main_fd_handler_add(fds[0], ECORE_FD_READ, _xwl_pipe_read, p, NULL, NULL); p->win = ev->requestor; p->source = source; - wl_data_source_send_send(source->resource, type, dup(fds[1])); + wl_data_source_send_send(source->resource, type, fds[1]); close(fds[1]); p->atom = ev->target; p->selection = ev->selection;