mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Fix resource leak in gdk_display_close() under Wayland
When using the gdk_display_close(), the handle to the Wayland compositor was not released. This could cause the consumption of all available handles, preventing other processes from accessing the display. Fixing this by calling wl_display_disconnect() when releasing the GdkWaylandDisplay object. Signed-off-by: Julien Ropé <jrope@redhat.com>
This commit is contained in:
parent
5adc1dc40f
commit
665955b81e
@ -755,6 +755,8 @@ gdk_wayland_display_finalize (GObject *object)
|
||||
|
||||
g_clear_object (&display_wayland->settings_portal);
|
||||
|
||||
wl_display_disconnect (display_wayland->wl_display);
|
||||
|
||||
G_OBJECT_CLASS (gdk_wayland_display_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user