mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When the commodity table is registered, the current book will get a default table assigned. When later setting the table explicitly using qof_book_set_data() the exisiting table gets overwritten and is thus leaked. There is no way of removing or freeing a currency table from a book, so the best we can do here is to set our own table on the book before calling gnc_commodity_table_register().