From cc2104c6995b66254e253ada2b567ab2402107a4 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 3 Feb 2021 16:29:49 -0500 Subject: [PATCH] [client] wayland: cleanup surface and display These used to be owned by SDL and can't be cleaned up. This has since changed. --- client/displayservers/Wayland/wayland.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/displayservers/Wayland/wayland.c b/client/displayservers/Wayland/wayland.c index c4cd7ab1..ab912541 100644 --- a/client/displayservers/Wayland/wayland.c +++ b/client/displayservers/Wayland/wayland.c @@ -851,12 +851,11 @@ static void waylandFree(void) zwp_idle_inhibit_manager_v1_destroy(wm.idleInhibitManager); } - // TODO: these also need to be freed, but are currently owned by SDL. - // wl_display_destroy(wm.display); - // wl_surface_destroy(wm.surface); + wl_surface_destroy(wm.surface); wl_pointer_destroy(wm.pointer); wl_seat_destroy(wm.seat); wl_registry_destroy(wm.registry); + wl_display_disconnect(wm.display); } static bool waylandGetProp(LG_DSProperty prop, void * ret)