[client] wayland: cleanup surface and display

These used to be owned by SDL and can't be cleaned up. This has since
changed.
This commit is contained in:
Quantum 2021-02-03 16:29:49 -05:00 committed by Geoffrey McRae
parent 253b0e2a7a
commit cc2104c699

View File

@ -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)