free the terminal title when destroy is run

This commit is contained in:
Maciej Bartczak
2025-02-20 21:20:03 +01:00
committed by Jeffrey C. Ollie
parent 95fc5ad1e9
commit 3542778d84

View File

@ -668,6 +668,7 @@ fn realize(self: *Surface) !void {
pub fn deinit(self: *Surface) void {
self.init_config.deinit(self.app.core_app.alloc);
if (self.title_text) |title| self.app.core_app.alloc.free(title);
if (self.title_from_terminal) |title| self.app.core_app.alloc.free(title);
if (self.pwd) |pwd| self.app.core_app.alloc.free(pwd);
// We don't allocate anything if we aren't realized.