From 9b25ec1ecc3676c87f27c7216fb8cafb183d072f Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 17 Aug 2003 05:03:15 +0000 Subject: [PATCH] fix anotehr stupid bug I introduced seconds ago git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9101 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/gnc-commodity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gnc-commodity.c b/src/engine/gnc-commodity.c index 57b1556eaa..78c5ce1ca1 100644 --- a/src/engine/gnc-commodity.c +++ b/src/engine/gnc-commodity.c @@ -1451,7 +1451,7 @@ ct_helper(gpointer key, gpointer value, gpointer data) GCache *str_cache = gnc_engine_get_string_cache (); gnc_commodity_namespace * ns = value; - g_hash_table_foreach_remove(ns->table, ns_helper, NULL); + g_hash_table_foreach_remove(ns->table, ns_helper, str_cache); g_hash_table_destroy(ns->table); ns->table = NULL; g_cache_remove (str_cache, ns->namespace); @@ -1465,7 +1465,7 @@ gnc_commodity_table_destroy(gnc_commodity_table * t) if (!t) return; ENTER ("table=%p", t); - g_hash_table_foreach_remove(t->table, ct_helper, t); + g_hash_table_foreach_remove(t->table, ct_helper, NULL); g_hash_table_destroy(t->table); t->table = NULL; g_free(t);