From 6b6ca6d4c70df0e4a3009ee093cf2f83ecee2675 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 1 Nov 2009 21:14:05 -0500 Subject: Improved the way account temporaries are managed --- src/account.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/account.cc') diff --git a/src/account.cc b/src/account.cc index 31d86bd2..b14520d3 100644 --- a/src/account.cc +++ b/src/account.cc @@ -42,10 +42,9 @@ account_t::~account_t() { TRACE_DTOR(account_t); - foreach (accounts_map::value_type& pair, accounts) { - assert(! pair.second->has_flags(ACCOUNT_TEMP)); - checked_delete(pair.second); - } + foreach (accounts_map::value_type& pair, accounts) + if (! pair.second->has_flags(ACCOUNT_TEMP)) + checked_delete(pair.second); } account_t * account_t::find_account(const string& name, -- cgit v1.2.3