free the terminal title when destroy is run

pull/5905/head
Maciej Bartczak 2025-02-20 21:20:03 +01:00 committed by Jeffrey C. Ollie
parent 95fc5ad1e9
commit 3542778d84
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 1 additions and 0 deletions

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.