From 1b7640dbb0e96928bfac76337024ead803652849 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 2 Nov 2009 00:32:18 -0500 Subject: Don't delete acct_temps if it was never set --- src/temps.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/temps.cc b/src/temps.cc index e44aaaa7..bf295997 100644 --- a/src/temps.cc +++ b/src/temps.cc @@ -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); -- cgit v1.2.3