summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-03-01 21:05:24 +0100
committerCarlos Garnacho <carlosg@gnome.org>2016-03-01 21:07:56 +0100
commit1a3653765c6beffb5350e88862d22a72812c66a4 (patch)
tree6edd51f05b0d430ba5b60090e68a781bc1dd62f1
parentf0b8dadb7d76333a0e164c1eb0e33c5c3526207e (diff)
downloadmutter-1a3653765c6beffb5350e88862d22a72812c66a4.tar.gz
wayland: Close primary selection fd after gtk_primary_selection_source.send
We leak the fd otherwise.
-rw-r--r--src/wayland/meta-wayland-data-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c
index 614b68e85..54160541b 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -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