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
This commit is contained in:
Linas Vepstas 2003-08-17 05:03:15 +00:00
parent a1bd05c0e7
commit 9b25ec1ecc

View File

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