mirror of https://github.com/Gnucash/gnucash
It's not correct to g_free id if the g_hash_table_insert returns
FALSE; returning FALSE means the key/value pair was replaced. The key
will automatically be freed by glib thanks to the new_hash having a
GDestroyNotify g_free:
GHashTable* new_hash = g_hash_table_new_full
(g_str_hash, g_str_equal, g_free, NULL);
pull/1446/head
parent
8193d7f23a
commit
14fe4d862f
Loading…
Reference in new issue