summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/temps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/temps.cc b/src/temps.cc
index 012a573b..fd099e9a 100644
--- a/src/temps.cc
+++ b/src/temps.cc
@@ -45,7 +45,7 @@ temporaries_t::~temporaries_t()
if (! post.xact->has_flags(ITEM_TEMP))
post.xact->remove_post(&post);
- if (! post.account->has_flags(ACCOUNT_TEMP))
+ if (post.account && ! post.account->has_flags(ACCOUNT_TEMP))
post.account->remove_post(&post);
}
}