From 1a3653765c6beffb5350e88862d22a72812c66a4 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 1 Mar 2016 21:05:24 +0100 Subject: [PATCH] wayland: Close primary selection fd after gtk_primary_selection_source.send We leak the fd otherwise. --- src/wayland/meta-wayland-data-device.c | 1 + 1 file changed, 1 insertion(+) 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