aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/gui/calendar-component.c3
-rw-r--r--calendar/gui/gnome-cal.c1
-rw-r--r--calendar/gui/tasks-component.c1
4 files changed, 13 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index a9afb419fd..4f1eff5b74 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,14 @@
2003-12-03 JP Rosevear <jpr@ximian.com>
+ * gui/gnome-cal.c (gnome_calendar_destroy): free the notification
+ list
+
+ * gui/tasks-component.c (impl_dispose): ditto
+
+ * gui/calendar-component.c (impl_dispose): ditto
+
+2003-12-03 JP Rosevear <jpr@ximian.com>
+
* gui/tasks-component.c (impl_dispose): free up the notifications
and the ecal
(config_create_ecal_changed_cb): clear the create_ecal if the
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 593795cb91..455ede19ba 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -487,7 +487,8 @@ impl_dispose (GObject *object)
}
for (l = priv->notifications; l; l = l->next)
- calendar_config_remove_notification (GPOINTER_TO_UINT (l->data));
+ calendar_config_remove_notification (GPOINTER_TO_UINT (l->data));
+ g_list_free (priv->notifications);
priv->notifications = NULL;
if (priv->activity_handler != NULL) {
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 9bc7dbc951..d56bb24e2c 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1130,6 +1130,7 @@ gnome_calendar_destroy (GtkObject *object)
for (l = priv->notifications; l; l = l->next)
calendar_config_remove_notification (GPOINTER_TO_UINT (l->data));
+ g_list_free (priv->notifications);
priv->notifications = NULL;
/* Save the TaskPad layout. */
diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c
index d6c579984e..db7864bdd7 100644
--- a/calendar/gui/tasks-component.c
+++ b/calendar/gui/tasks-component.c
@@ -458,6 +458,7 @@ impl_dispose (GObject *object)
for (l = priv->notifications; l; l = l->next)
calendar_config_remove_notification (GPOINTER_TO_UINT (l->data));
+ g_list_free (priv->notifications);
priv->notifications = NULL;
(* G_OBJECT_CLASS (parent_class)->dispose) (object);