From 130a7842f0b1b2a44f8a320dfb3cca112a42190c Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 18 Feb 2005 13:33:01 +0000 Subject: if opening the calendar failed, disconnect signals and unref it. 2005-02-18 Rodrigo Moya * gui/alarm-notify/alarm-notify.c (cal_opened_cb): if opening the calendar failed, disconnect signals and unref it. svn path=/trunk/; revision=28810 --- calendar/gui/alarm-notify/alarm-notify.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui/alarm-notify') diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c index 3196599362..b2208eb77d 100644 --- a/calendar/gui/alarm-notify/alarm-notify.c +++ b/calendar/gui/alarm-notify/alarm-notify.c @@ -303,6 +303,9 @@ cal_opened_cb (ECal *client, ECalendarStatus status, gpointer user_data) else { g_hash_table_remove (priv->uri_client_hash[e_cal_get_source_type (client)], e_cal_get_uri (client)); + g_signal_handlers_disconnect_matched (G_OBJECT (client), G_SIGNAL_MATCH_DATA, + 0, 0, NULL, NULL, an); + g_object_unref (client); } } -- cgit