From ede73e8889ce4c5b45ce837f312047b8d259fecf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Nov 2009 16:00:32 -0500 Subject: Corrected an incorrect call to remove_account --- src/temps.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/temps.cc') diff --git a/src/temps.cc b/src/temps.cc index bf295997..012a573b 100644 --- a/src/temps.cc +++ b/src/temps.cc @@ -52,8 +52,8 @@ temporaries_t::~temporaries_t() if (acct_temps) { foreach (account_t& acct, *acct_temps) { - if (! acct.has_flags(ACCOUNT_TEMP)) - acct.remove_account(&acct); + if (acct.parent && ! acct.parent->has_flags(ACCOUNT_TEMP)) + acct.parent->remove_account(&acct); } } } -- cgit v1.2.3