wayland: Close primary selection fd after gtk_primary_selection_source.send

We leak the fd otherwise.
This commit is contained in:
Carlos Garnacho 2016-03-01 21:05:24 +01:00
parent f0b8dadb7d
commit 1a3653765c

View File

@ -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