diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-02 16:00:32 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-02 16:00:32 -0500 |
commit | ede73e8889ce4c5b45ce837f312047b8d259fecf (patch) | |
tree | 014b5da66edde06dc8c66ef36f917531c1c1b180 /src/temps.cc | |
parent | 5e1886b147df2e3265304246d06272e6bac049a5 (diff) | |
download | fork-ledger-ede73e8889ce4c5b45ce837f312047b8d259fecf.tar.gz fork-ledger-ede73e8889ce4c5b45ce837f312047b8d259fecf.tar.bz2 fork-ledger-ede73e8889ce4c5b45ce837f312047b8d259fecf.zip |
Corrected an incorrect call to remove_account
Diffstat (limited to 'src/temps.cc')
-rw-r--r-- | src/temps.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/temps.cc b/src/temps.cc index bf295997..012a573b 100644 --- a/src/temps.cc +++ b/src/temps.cc @@ -52,8 +52,8 @@ temporaries_t::~temporaries_t() if (acct_temps) { foreach (account_t& acct, *acct_temps) { - if (! acct.has_flags(ACCOUNT_TEMP)) - acct.remove_account(&acct); + if (acct.parent && ! acct.parent->has_flags(ACCOUNT_TEMP)) + acct.parent->remove_account(&acct); } } } |