diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-19 22:59:50 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-19 22:59:50 +0200 |
| commit | cee41e925dc0a9d7460806c9f8386512b207edf3 (patch) | |
| tree | 75799b00cf703d4196864a261e01ff8ec53699f2 /src/Mode.zig | |
| parent | 569308d91b7d6ea19a283a3db4a612f9e5d881d7 (diff) | |
| download | river-cee41e925dc0a9d7460806c9f8386512b207edf3.tar.gz river-cee41e925dc0a9d7460806c9f8386512b207edf3.tar.xz | |
Implement command execution through riverctl
Diffstat (limited to 'src/Mode.zig')
| -rw-r--r-- | src/Mode.zig | 1 |
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(); } |
