summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 00:32:18 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 00:32:18 -0500
commit1b7640dbb0e96928bfac76337024ead803652849 (patch)
treeda50a7320b8a2fa558410516f018ade1f82dc4b9 /src
parent46a419a5dabcc6b02231f12357b20f70a14cfe63 (diff)
downloadfork-ledger-1b7640dbb0e96928bfac76337024ead803652849.tar.gz
fork-ledger-1b7640dbb0e96928bfac76337024ead803652849.tar.bz2
fork-ledger-1b7640dbb0e96928bfac76337024ead803652849.zip
Don't delete acct_temps if it was never set
Diffstat (limited to 'src')
-rw-r--r--src/temps.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/temps.cc b/src/temps.cc
index e44aaaa7..bf295997 100644
--- a/src/temps.cc
+++ b/src/temps.cc
@@ -48,7 +48,9 @@ temporaries_t::~temporaries_t()
if (! post.account->has_flags(ACCOUNT_TEMP))
post.account->remove_post(&post);
}
+ }
+ if (acct_temps) {
foreach (account_t& acct, *acct_temps) {
if (! acct.has_flags(ACCOUNT_TEMP))
acct.remove_account(&acct);