From 8c61ba013f676b60cc016464363edfea0c70c7e3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 2 Jun 2010 00:27:59 -0400 Subject: [PATCH] Changed two uses of delete to checked_delete() --- src/convert.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/convert.cc b/src/convert.cc index 2e6da2f6..aa9bbb6f 100644 --- a/src/convert.cc +++ b/src/convert.cc @@ -117,7 +117,7 @@ value_t convert_command(call_scope_t& scope) if (matched) { DEBUG("convert.csv", "Ignored xact with code: " << *xact->code); - delete xact; // ignore it + checked_delete(xact); // ignore it } else { if (xact->posts.front()->account == NULL) { @@ -135,7 +135,7 @@ value_t convert_command(call_scope_t& scope) } if (! journal.add_xact(xact)) { - delete xact; + checked_delete(xact); throw_(std::runtime_error, _("Failed to finalize derived transaction (check commodities)")); }