diff options
Diffstat (limited to 'src/expr/expr_manager_template.cpp')
-rw-r--r-- | src/expr/expr_manager_template.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/expr/expr_manager_template.cpp b/src/expr/expr_manager_template.cpp index 9b8511de9..5d34fb53c 100644 --- a/src/expr/expr_manager_template.cpp +++ b/src/expr/expr_manager_template.cpp @@ -95,9 +95,8 @@ ExprManager::ExprManager(const Options& options) : } ExprManager::~ExprManager() { - delete d_nodeManager; - delete d_ctxt; #ifdef CVC4_STATISTICS_ON + NodeManagerScope nms(d_nodeManager); for (unsigned i = 0; i < kind::LAST_KIND; ++ i) { if (d_exprStatistics[i] != NULL) { StatisticsRegistry::unregisterStat(d_exprStatistics[i]); @@ -111,6 +110,8 @@ ExprManager::~ExprManager() { } } #endif + delete d_nodeManager; + delete d_ctxt; } BooleanType ExprManager::booleanType() const { |