* gnc-ledger-display.c -- fix a memory leak (you need to g_list_free()

the returned list from xaccGroupGetSubAccounts(), according to the docs)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7340 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2002-10-18 04:05:26 +00:00
parent ec02c44c15
commit 2552b94b42
2 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,9 @@
* split-register-model.c -- If the TxnType != NONE, set all cells as
READ_ONLY.
* fixes bug 96028 by making posted invoices and payments read-only.
* gnc-ledger-display.c -- fix a memory leak (you need to g_list_free()
the returned list from xaccGroupGetSubAccounts(), according to the docs)
2002-10-16 Joshua Sled <jsled@asynchronous.org>

View File

@ -437,6 +437,7 @@ gnc_ledger_display_gl (void)
tAG = gnc_book_get_template_group( gnc_get_current_book() );
al = xaccGroupGetSubAccounts( tAG );
xaccQueryAddAccountMatch( query, al, GUID_MATCH_NONE, QUERY_AND );
g_list_free (al);
al = NULL;
tAG = NULL;
}