mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
[Testing] Fix potential leaks in Split teardown.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22153 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -50,9 +50,9 @@ static void
|
||||
setup (Fixture *fixture, gconstpointer pData)
|
||||
{
|
||||
QofBook *book = qof_book_new ();
|
||||
Transaction *txn = xaccMallocTransaction (book), *rtxn = NULL;
|
||||
Account *acc = xaccMallocAccount (book), *racc = NULL;
|
||||
GNCLot *lot = gnc_lot_new (book), *rlot = NULL;
|
||||
Transaction *txn = xaccMallocTransaction (book);
|
||||
Account *acc = xaccMallocAccount (book);
|
||||
GNCLot *lot = gnc_lot_new (book);
|
||||
gnc_numeric value = gnc_numeric_create (123, 240);
|
||||
gnc_numeric amount = gnc_numeric_create (321, 1000);
|
||||
Timespec time = timespec_now ();
|
||||
@@ -100,6 +100,8 @@ teardown (Fixture *fixture, gconstpointer pData)
|
||||
test_destroy (txn);
|
||||
test_destroy (acc);
|
||||
test_destroy (fixture->split);
|
||||
test_destroy (fixture->curr);
|
||||
test_destroy (fixture->comm);
|
||||
test_destroy (book);
|
||||
g_free (fixture->func);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user