summaryrefslogtreecommitdiff
path: root/src/theory/theory_model.cpp
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2014-04-29 19:51:29 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2014-04-29 21:03:55 -0400
commitc95872d478a9ff1f207b8945dba558ae4547f054 (patch)
tree94cccf1ae397db049e61c69f59093b9856e324c1 /src/theory/theory_model.cpp
parent03c1daa126ecd86d1434c7512b73723687ea8ca0 (diff)
Mostly resolves bug #561 memory leaks, and more.
Diffstat (limited to 'src/theory/theory_model.cpp')
-rw-r--r--src/theory/theory_model.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/theory/theory_model.cpp b/src/theory/theory_model.cpp
index f207bdb8e..7187a373f 100644
--- a/src/theory/theory_model.cpp
+++ b/src/theory/theory_model.cpp
@@ -27,7 +27,7 @@ using namespace CVC4::kind;
using namespace CVC4::context;
using namespace CVC4::theory;
-TheoryModel::TheoryModel( context::Context* c, std::string name, bool enableFuncModels) :
+TheoryModel::TheoryModel(context::Context* c, std::string name, bool enableFuncModels) :
d_substitutions(c, false), d_modelBuilt(c, false), d_enableFuncModels(enableFuncModels)
{
d_true = NodeManager::currentNM()->mkConst( true );
@@ -46,6 +46,12 @@ TheoryModel::TheoryModel( context::Context* c, std::string name, bool enableFunc
d_eeContext->push();
}
+TheoryModel::~TheoryModel() {
+ d_eeContext->pop();
+ delete d_equalityEngine;
+ delete d_eeContext;
+}
+
void TheoryModel::reset(){
d_reps.clear();
d_rep_set.clear();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback