diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-28 01:15:57 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-28 01:15:57 -0400 |
commit | b7233edd8a7101c16d41837a8ebe2710ede76cc7 (patch) | |
tree | 3bcec070b129e4888e3a855bc542430710b3f513 /src/account.cc | |
parent | ade0a8b6f3eeb893eda2ae7355d503bf6514f147 (diff) | |
download | fork-ledger-b7233edd8a7101c16d41837a8ebe2710ede76cc7.tar.gz fork-ledger-b7233edd8a7101c16d41837a8ebe2710ede76cc7.tar.bz2 fork-ledger-b7233edd8a7101c16d41837a8ebe2710ede76cc7.zip |
Added some additional assertion tests re: temps
Diffstat (limited to 'src/account.cc')
-rw-r--r-- | src/account.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/account.cc b/src/account.cc index 4bcb0c25..57b66d86 100644 --- a/src/account.cc +++ b/src/account.cc @@ -42,8 +42,10 @@ account_t::~account_t() { TRACE_DTOR(account_t); - foreach (accounts_map::value_type& pair, accounts) + foreach (accounts_map::value_type& pair, accounts) { + assert(! pair.second->has_flags(ACCOUNT_TEMP)); checked_delete(pair.second); + } } account_t * account_t::find_account(const string& name, |