Corrected an incorrect call to remove_account

This commit is contained in:
John Wiegley 2009-11-02 16:00:32 -05:00
parent 5e1886b147
commit ede73e8889

View file

@ -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);
}
}
}