summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 403e7c81..37414fd5 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -44,22 +44,13 @@ journal_t::~journal_t()
// accounts they refer to, because all accounts are about to
// be deleted.
foreach (entry_t * entry, entries)
- if (! entry->has_flags(ITEM_IN_CACHE))
- checked_delete(entry);
- else
- entry->~entry_t();
+ checked_delete(entry);
foreach (auto_entry_t * entry, auto_entries)
- if (! entry->has_flags(ITEM_IN_CACHE))
- checked_delete(entry);
- else
- entry->~auto_entry_t();
+ checked_delete(entry);
foreach (period_entry_t * entry, period_entries)
- if (! entry->has_flags(ITEM_IN_CACHE))
- checked_delete(entry);
- else
- entry->~period_entry_t();
+ checked_delete(entry);
}
void journal_t::add_account(account_t * acct)