From 92669963df79ab225e1abbf021d141bfff905dc1 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 22 Jan 2003 20:56:44 +0000 Subject: (cal_backend_ref_categories): Do not put the category in both the changed_categories and the categories hashes; fixes a double-free when finalizing the CalBackend. [Hopefully this is the right fix.] svn path=/trunk/; revision=19572 --- calendar/ChangeLog | 6 ++++++ calendar/pcs/cal-backend.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 042f514523..296e890242 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2003-01-22 Ettore Perazzoli + + * pcs/cal-backend.c (cal_backend_ref_categories): Do not put the + category in both the changed_categories and the categories hashes; + fixes a double-free when finalizing the CalBackend. + 2003-01-22 Ettore Perazzoli * gui/gnome-cal.c (gnome_calendar_setup_view_menus): Use diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c index f797f3f67d..e829a9bd2a 100644 --- a/calendar/pcs/cal-backend.c +++ b/calendar/pcs/cal-backend.c @@ -1149,7 +1149,6 @@ cal_backend_ref_categories (CalBackend *backend, GSList *categories) c = g_new (CalBackendCategory, 1); c->name = g_strdup (name); c->refcount = 1; - g_hash_table_insert (priv->categories, c->name, c); g_hash_table_insert (priv->changed_categories, c->name, c); } } -- cgit v1.2.3