From 42d799a1fdde6278fe42be58786937e49fcf1c3f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 8 May 2007 10:33:25 +0000 Subject: Added tests to complete coverage. --- src/amount.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/amount.cc b/src/amount.cc index 382ea36c..aef13ba8 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -210,10 +210,10 @@ void amount_t::_release() DEBUG("amounts.refs", quantity << " ref--, now " << (quantity->ref - 1)); if (--quantity->ref == 0) { - if (! (quantity->has_flags(BIGINT_BULK_ALLOC))) - checked_delete(quantity); - else + if (quantity->has_flags(BIGINT_BULK_ALLOC)) quantity->~bigint_t(); + else + checked_delete(quantity); } } -- cgit v1.2.3