mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Invalidate the timer when the surface is destroyed
This commit is contained in:

committed by
Jonathan Lopez

parent
e5bbd14295
commit
34e5f55165
@ -651,6 +651,7 @@ pub fn deinit(self: *Surface) void {
|
||||
// and therefore the unfocused_overlay has been destroyed as well.
|
||||
c.g_object_unref(self.im_context);
|
||||
if (self.cursor) |cursor| c.g_object_unref(cursor);
|
||||
if (self.update_title_timer) |timer| _ = c.g_source_remove(timer);
|
||||
self.resize_overlay.deinit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user