Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] Fix memory leak in test-gnc-quotes
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().
- Loading branch information