From cd8797e35f436757df298f81ee0f465ced9cfb97 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 14 Apr 2023 07:30:59 +0200 Subject: [PATCH] contacts-provider: Disconnect signals on finalize --- src/calls-contacts-provider.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calls-contacts-provider.c b/src/calls-contacts-provider.c index 4640a60..abee43d 100644 --- a/src/calls-contacts-provider.c +++ b/src/calls-contacts-provider.c @@ -278,6 +278,9 @@ calls_contacts_provider_finalize (GObject *object) { CallsContactsProvider *self = CALLS_CONTACTS_PROVIDER (object); + if (self->contacts_action_group) + g_signal_handlers_disconnect_by_data (self->contacts_action_group, self); + g_clear_handle_id (&self->bus_watch_id, g_bus_unwatch_name); g_clear_object (&self->contacts_action_group); g_clear_object (&self->folks_aggregator);