Don't delete acct_temps if it was never set

This commit is contained in:
John Wiegley 2009-11-02 00:32:18 -05:00
parent 46a419a5da
commit 1b7640dbb0

View file

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