mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
free the terminal title when destroy is run
This commit is contained in:

committed by
Jeffrey C. Ollie

parent
95fc5ad1e9
commit
3542778d84
@ -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.
|
||||
|
Reference in New Issue
Block a user