Don't delete acct_temps if it was never set
This commit is contained in:
parent
46a419a5da
commit
1b7640dbb0
1 changed files with 2 additions and 0 deletions
|
|
@ -48,7 +48,9 @@ temporaries_t::~temporaries_t()
|
|||
if (! post.account->has_flags(ACCOUNT_TEMP))
|
||||
post.account->remove_post(&post);
|
||||
}
|
||||
}
|
||||
|
||||
if (acct_temps) {
|
||||
foreach (account_t& acct, *acct_temps) {
|
||||
if (! acct.has_flags(ACCOUNT_TEMP))
|
||||
acct.remove_account(&acct);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue