Corrected an incorrect call to remove_account
This commit is contained in:
parent
5e1886b147
commit
ede73e8889
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue