(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
This commit is contained in:
Ettore Perazzoli
2003-01-22 20:56:44 +00:00
parent de29937663
commit 92669963df
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-01-22 Ettore Perazzoli <ettore@ximian.com>
* 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 <ettore@ximian.com>
* gui/gnome-cal.c (gnome_calendar_setup_view_menus): Use

View File

@ -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);
}
}