aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-04 01:21:50 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-04 01:21:50 +0800
commit313275af7dd939c72e42e38fe4b75f1daf903f55 (patch)
treeffdc9fbc33ede599d4fd7774c50be1a64a415db9
parentba62cfbfdb2a53f06a496f764e95585a1fe4a641 (diff)
downloadgsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.tar
gsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.tar.gz
gsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.tar.bz2
gsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.tar.lz
gsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.tar.xz
gsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.tar.zst
gsoc2013-evolution-313275af7dd939c72e42e38fe4b75f1daf903f55.zip
free the notification list
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 svn path=/trunk/; revision=23610
-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);