fix: allocate and free entry.name in open_recent_project palette

This commit is contained in:
CJ van den Berg 2024-08-19 22:52:19 +02:00
parent bd27db46d1
commit 67ffff4caa
2 changed files with 9 additions and 3 deletions

View file

@ -89,6 +89,8 @@ pub fn Create(options: type) type {
pub fn deinit(self: *Self) void {
self.commands.deinit();
if (@hasDecl(options, "deinit"))
options.deinit(self);
self.entries.deinit();
tui.current().message_filters.remove_ptr(self);
if (tui.current().mainview.dynamic_cast(mainview)) |mv|