aboutsummaryrefslogtreecommitdiff
path: root/src/Mode.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mode.zig')
-rw-r--r--src/Mode.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Mode.zig b/src/Mode.zig
index 9210db6..dfc4f54 100644
--- a/src/Mode.zig
+++ b/src/Mode.zig
@@ -38,5 +38,6 @@ pub fn init(name: []const u8, allocator: *std.mem.Allocator) !Self {
pub fn deinit(self: Self) void {
const allocator = self.keybinds.allocator;
allocator.free(self.name);
+ for (self.keybinds.items) |keybind| keybind.command.deinit(allocator);
self.keybinds.deinit();
}