[mutter] wayland: Close primary selection fd after gtk_primary_selection_source.send
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland: Close primary selection fd after gtk_primary_selection_source.send
- Date: Tue, 1 Mar 2016 20:08:27 +0000 (UTC)
commit 1a3653765c6beffb5350e88862d22a72812c66a4
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 1 21:05:24 2016 +0100
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 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 614b68e..5416054 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]