From cee41e925dc0a9d7460806c9f8386512b207edf3 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 19 May 2020 22:59:50 +0200 Subject: Implement command execution through riverctl --- src/Mode.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Mode.zig') 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(); } -- cgit v1.2.3