Free schedule Transaction accounts

There is no need to act differently when destroying the scheduled
transactions accounts, they can be destroyed when the scheduled
transaction is freed under normal conditions and on book close.
pull/1088/head
Robert Fewell 5 years ago
parent a9a3ed425a
commit a76fa5631c

@ -497,17 +497,8 @@ xaccSchedXactionFree( SchedXaction *sx )
delete_template_trans( sx );
/*
* xaccAccountDestroy removes the account from
* its group for us AFAICT. If shutting down,
* the account is being deleted separately.
*/
if (!qof_book_shutting_down(qof_instance_get_book(sx)))
{
xaccAccountBeginEdit(sx->template_acct);
xaccAccountDestroy(sx->template_acct);
}
xaccAccountBeginEdit( sx->template_acct );
xaccAccountDestroy( sx->template_acct );
for ( l = sx->deferredList; l; l = l->next )
{

Loading…
Cancel
Save