mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
xwayland/selection: prevent fd leak on unsupported MIME type
Since we never end up calling xcb_convert_selection, the file descriptor ends up getting leaked (i.e., not cleaned up within xwm_data_source_write).
This commit is contained in:
parent
abb56152ff
commit
0db191d3bf
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ static void source_send(struct wlr_xwm_selection *selection,
|
|||
if (!found) {
|
||||
wlr_log(WLR_DEBUG, "Cannot send X11 selection to Wayland: "
|
||||
"unsupported MIME type");
|
||||
close(fd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue