mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
wayland: Close pipe file descriptors after use
Both ends were being leaked here, one directly, other through the GIOChannel. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4302 (just maybe) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1870>
This commit is contained in:
parent
f954ff84b8
commit
4ed05830e2
@ -425,7 +425,9 @@ meta_wayland_data_source_fake_read (MetaWaylandDataSource *source,
|
||||
}
|
||||
|
||||
meta_wayland_data_source_send (source, mimetype, p[1]);
|
||||
close (p[1]);
|
||||
channel = g_io_channel_unix_new (p[0]);
|
||||
g_io_channel_set_close_on_unref (channel, TRUE);
|
||||
g_io_add_watch (channel, G_IO_HUP, on_fake_read_hup, source);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user