aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-10-31 03:04:54 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-10-31 03:04:54 +0800
commit973ca5ea3d5d3b28cbf16865336c344864f652d8 (patch)
treea91b68ae7d16d3c3ec2a19df597251514032f3b9 /calendar/gui/alarm-notify
parent61031f4cb0f452d917bd3c1e8e6a5522cac57b2f (diff)
downloadgsoc2013-evolution-973ca5ea3d5d3b28cbf16865336c344864f652d8.tar.gz
gsoc2013-evolution-973ca5ea3d5d3b28cbf16865336c344864f652d8.tar.zst
gsoc2013-evolution-973ca5ea3d5d3b28cbf16865336c344864f652d8.zip
removed.
2003-10-30 Rodrigo Moya <rodrigo@ximian.com> * gui/e-tasks.[ch] (e_tasks_get_cal_client): removed. * gui/tasks-control.c (sensitize_commands): fixed to work correctly with the ECalView's model. (tasks_control_set_property): don't use e_tasks_get_cal_client. * gui/alarm-notify/alarm-notify.c (free_client_hash): new function to remove items from the CalClient's hash table. (alarm_notify_finalize): call free_client_hash() for each item in the hash table. svn path=/trunk/; revision=23136
Diffstat (limited to 'calendar/gui/alarm-notify')
-rw-r--r--calendar/gui/alarm-notify/alarm-notify.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/calendar/gui/alarm-notify/alarm-notify.c b/calendar/gui/alarm-notify/alarm-notify.c
index 006533c6bf..ce73223afb 100644
--- a/calendar/gui/alarm-notify/alarm-notify.c
+++ b/calendar/gui/alarm-notify/alarm-notify.c
@@ -88,6 +88,16 @@ alarm_notify_init (AlarmNotify *an, AlarmNotifyClass *klass)
priv->uri_client_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
}
+static void
+free_client_hash (gpointer key, gpointer value, gpointer user_data)
+{
+ char *uri = key;
+ CalClient *client = value;
+
+ g_free (uri);
+ g_object_unref (client);
+}
+
/* Finalize handler for the alarm notify system */
static void
alarm_notify_finalize (GObject *object)
@@ -101,6 +111,7 @@ alarm_notify_finalize (GObject *object)
an = ALARM_NOTIFY (object);
priv = an->priv;
+ g_hash_table_foreach (priv->uri_client_hash, (GHFunc) free_client_hash, NULL);
g_hash_table_destroy (priv->uri_client_hash);
g_free (priv);