From cd82c2c52c735dc962b580bbda2ee9a127b12a3a Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 2 May 2026 14:57:54 -0300 Subject: [PATCH] gui/date-chooser: Properly remove idle source When disposing of the widget, also remove the associated idle source that might exist. This prevents a crash. Part-of: --- src/gui/common/gcal-date-chooser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/common/gcal-date-chooser.c b/src/gui/common/gcal-date-chooser.c index c14cfdcb..bf789c22 100644 --- a/src/gui/common/gcal-date-chooser.c +++ b/src/gui/common/gcal-date-chooser.c @@ -66,7 +66,7 @@ struct _GcalDateChooser gboolean show_events; gboolean split_month_year; - gulong update_indicators_idle_id; + unsigned int update_indicators_idle_id; }; static void gcal_view_interface_init (GcalViewInterface *iface); @@ -873,6 +873,8 @@ gcal_date_chooser_finalize (GObject *object) { GcalDateChooser *self = GCAL_DATE_CHOOSER (object); + g_clear_handle_id (&self->update_indicators_idle_id, g_source_remove); + g_clear_object (&self->model_signal_group); g_clear_pointer (&self->date, g_date_time_unref);