aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-notify.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2005-02-18 21:33:01 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2005-02-18 21:33:01 +0800
commit130a7842f0b1b2a44f8a320dfb3cca112a42190c (patch)
treec0fbe0bb5766b6ce364cfcfbd28bc79968e14b3b /calendar/gui/alarm-notify/alarm-notify.c
parentede8a754351774324424cc1b35f3f9c8806f3935 (diff)
downloadgsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.tar
gsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.tar.gz
gsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.tar.bz2
gsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.tar.lz
gsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.tar.xz
gsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.tar.zst
gsoc2013-evolution-130a7842f0b1b2a44f8a320dfb3cca112a42190c.zip
if opening the calendar failed, disconnect signals and unref it.
2005-02-18 Rodrigo Moya <rodrigo@novell.com> * gui/alarm-notify/alarm-notify.c (cal_opened_cb): if opening the calendar failed, disconnect signals and unref it. svn path=/trunk/; revision=28810
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-notify.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}