[test-qofbook] plugs Account* leak

This commit is contained in:
Christopher Lam 2023-09-16 17:20:06 +08:00
parent 41167e3270
commit 1ddee7dc3f

View File

@ -64,6 +64,9 @@ setup( Fixture *fixture, gconstpointer pData )
static void
teardown( Fixture *fixture, gconstpointer pData )
{
Account *root = gnc_book_get_root_account (fixture->book);
xaccAccountBeginEdit (root);
xaccAccountDestroy (root);
qof_book_destroy( fixture->book );
}