Fix some memory leaks

This commit is contained in:
Ben Buhse 2026-02-22 17:38:28 -06:00
commit 8e6c28da7b
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
7 changed files with 37 additions and 10 deletions

View file

@ -116,6 +116,13 @@ pub fn destroy(context: *Context) void {
if (context.tag_overlay_timer_fd) |fd| posix.close(fd);
context.buffer_pool.deinit();
// Destroy Wayland globals
context.river_layer_shell_v1.destroy();
context.zwlr_layer_shell_v1.destroy();
context.wl_shm.destroy();
context.wl_compositor.destroy();
context.wl_registry.destroy();
utils.gpa.destroy(context);
}