summaryrefslogtreecommitdiff
path: root/src/temps.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-06 15:35:16 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-06 15:35:16 -0500
commitf03d386013f220e5b88a056c514c20319c83e9e7 (patch)
tree107234c2ca0947fac84be819611ff5c0c610dac6 /src/temps.cc
parent312d4c5f5339c61253e86cd9ce825370eb4be053 (diff)
parent205639669981f1ab9dc355d07c60c123c4da0ca0 (diff)
downloadfork-ledger-f03d386013f220e5b88a056c514c20319c83e9e7.tar.gz
fork-ledger-f03d386013f220e5b88a056c514c20319c83e9e7.tar.bz2
fork-ledger-f03d386013f220e5b88a056c514c20319c83e9e7.zip
Merge branch 'next'
Diffstat (limited to 'src/temps.cc')
-rw-r--r--src/temps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/temps.cc b/src/temps.cc
index 012a573b..fd099e9a 100644
--- a/src/temps.cc
+++ b/src/temps.cc
@@ -45,7 +45,7 @@ temporaries_t::~temporaries_t()
if (! post.xact->has_flags(ITEM_TEMP))
post.xact->remove_post(&post);
- if (! post.account->has_flags(ACCOUNT_TEMP))
+ if (post.account && ! post.account->has_flags(ACCOUNT_TEMP))
post.account->remove_post(&post);
}
}