fix: avoid some potential memory leaks in ripgrep and filelist_view

This commit is contained in:
CJ van den Berg 2024-11-04 22:17:39 +01:00
parent cfb9f8cf11
commit 9421f4e7f6
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 6 additions and 0 deletions

View file

@ -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);