mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-02 01:48:08 +00:00
remove timeout source when window is disposed
This commit is contained in:
@@ -1237,6 +1237,13 @@ pub const Window = extern struct {
|
||||
fn dispose(self: *Self) callconv(.c) void {
|
||||
const priv = self.private();
|
||||
|
||||
if (priv.timeout) |v| {
|
||||
if (glib.Source.remove(v) == 0) {
|
||||
log.warn("unable to remove timeout source", .{});
|
||||
}
|
||||
priv.timeout = null;
|
||||
}
|
||||
|
||||
priv.command_palette.set(null);
|
||||
|
||||
if (priv.config) |v| {
|
||||
|
||||
Reference in New Issue
Block a user