[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 authored and Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 253b0e2a7a
commit cc2104c699
1 file changed
+2 -3
+2 -3
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)