new-calendar-page: Properly cleanup sources

We can't control a widget's property at destruction time.
Cleanup the sources directly.
This commit is contained in:
Georges Basile Stavracas Neto
2019-07-13 20:07:30 -03:00
parent b49486d0f9
commit 9aec1c097d
@@ -554,7 +554,8 @@ gcal_new_calendar_page_finalize (GObject *object)
{
GcalNewCalendarPage *self = (GcalNewCalendarPage *)object;
toggle_url_entry_pulsing (self, FALSE);
g_clear_handle_id (&self->calendar_address_id, g_source_remove);
g_clear_handle_id (&self->validate_url_resource_id, g_source_remove);
g_cancellable_cancel (self->cancellable);
g_clear_object (&self->cancellable);