mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
wayland: Close primary selection fd after gtk_primary_selection_source.send
We leak the fd otherwise.
This commit is contained in:
parent
f0b8dadb7d
commit
1a3653765c
@ -1229,6 +1229,7 @@ meta_wayland_data_source_primary_send (MetaWaylandDataSource *source,
|
||||
source_primary = META_WAYLAND_DATA_SOURCE_PRIMARY (source);
|
||||
gtk_primary_selection_source_send_send (source_primary->resource,
|
||||
mime_type, fd);
|
||||
close (fd);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user