summaryrefslogtreecommitdiff
path: root/src/account.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-02 00:19:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-02 00:27:35 -0400
commite0c5f6db30382960fa60739c368e3700e5f71b67 (patch)
treed1bef21c1c6e272c13c6d50d85bedc4c64adc34a /src/account.cc
parent281225db1380d7ab3a741820c27c0e20beddc977 (diff)
downloadfork-ledger-e0c5f6db30382960fa60739c368e3700e5f71b67.tar.gz
fork-ledger-e0c5f6db30382960fa60739c368e3700e5f71b67.tar.bz2
fork-ledger-e0c5f6db30382960fa60739c368e3700e5f71b67.zip
Fixed two memory reference errors
Diffstat (limited to 'src/account.cc')
-rw-r--r--src/account.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/account.cc b/src/account.cc
index 46f37091..8d4341e7 100644
--- a/src/account.cc
+++ b/src/account.cc
@@ -42,16 +42,11 @@ account_t::~account_t()
{
TRACE_DTOR(account_t);
- foreach (accounts_map::value_type& pair, accounts)
+ foreach (accounts_map::value_type& pair, accounts) {
if (! pair.second->has_flags(ACCOUNT_TEMP) ||
- has_flags(ACCOUNT_TEMP))
+ has_flags(ACCOUNT_TEMP)) {
checked_delete(pair.second);
-
- foreach (post_t * post, posts) {
- if (post->account) {
- assert(post->account == this);
- post->account = NULL;
- }
+ }
}
}