fix: avoid some potential memory leaks in ripgrep and filelist_view
This commit is contained in:
parent
cfb9f8cf11
commit
9421f4e7f6
2 changed files with 6 additions and 0 deletions
|
@ -67,6 +67,7 @@ pub fn create(allocator: Allocator, parent: Plane) !Widget {
|
|||
}
|
||||
|
||||
pub fn deinit(self: *Self, allocator: Allocator) void {
|
||||
self.reset();
|
||||
self.plane.deinit();
|
||||
self.commands.deinit();
|
||||
allocator.destroy(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue