mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-30 20:37:55 +00:00
fix a couple more memory leaks
This commit is contained in:
@@ -171,6 +171,11 @@ pub const Set = struct {
|
||||
/// The set of bindings.
|
||||
bindings: HashMap = .{},
|
||||
|
||||
pub fn deinit(self: *Set, alloc: Allocator) void {
|
||||
self.bindings.deinit(alloc);
|
||||
self.* = undefined;
|
||||
}
|
||||
|
||||
/// Add a binding to the set. If the binding already exists then
|
||||
/// this will overwrite it.
|
||||
pub fn put(self: *Set, alloc: Allocator, t: Trigger, action: Action) !void {
|
||||
|
||||
Reference in New Issue
Block a user