Invalidate the timer when the surface is destroyed

This commit is contained in:
Maciej Bartczak
2024-12-29 09:27:59 +01:00
parent 4ed8306b02
commit 2b245c965c

View File

@ -650,6 +650,7 @@ pub fn deinit(self: *Surface) void {
// and therefore the unfocused_overlay has been destroyed as well. // and therefore the unfocused_overlay has been destroyed as well.
c.g_object_unref(self.im_context); c.g_object_unref(self.im_context);
if (self.cursor) |cursor| c.g_object_unref(cursor); if (self.cursor) |cursor| c.g_object_unref(cursor);
if (self.update_title_timer) |timer| _ = c.g_source_remove(timer);
self.resize_overlay.deinit(); self.resize_overlay.deinit();
} }