free more memory

This commit is contained in:
Squibid 2025-10-17 21:14:57 -04:00
parent 8360569d4c
commit e06c076c06
Signed by: squibid
GPG key ID: BECE5684D3C4005D

View file

@ -91,10 +91,21 @@ pub fn init(server: *Server) !void {
pub fn deinit(server: *Server) void {
server.wl_server.destroyClients();
server.cursor.destroy();
server.cursor_mgr.destroy();
server.new_input.link.remove();
server.new_output.link.remove();
server.cursor_motion.link.remove();
server.cursor_motion_absolute.link.remove();
server.cursor_button.link.remove();
server.cursor_axis.link.remove();
server.cursor_frame.link.remove();
server.request_set_cursor.link.remove();
server.request_set_selection.link.remove();
server.backend.destroy();
server.seat.destroy();
server.wl_server.destroy();
}