diff options
author | Tim King <taking@google.com> | 2016-02-01 10:56:55 -0800 |
---|---|---|
committer | Tim King <taking@google.com> | 2016-02-01 10:56:55 -0800 |
commit | 1df86d534849429e269eeea9be914a3df5abd8ea (patch) | |
tree | dcb18c64e6c321d0d606b679bcf07c7fd261da52 /src/theory/arrays/array_info.h | |
parent | 969ef1c750a6aef28487058c1edc3a68c5be8c2d (diff) |
Fixing a memory leak in array info.
Diffstat (limited to 'src/theory/arrays/array_info.h')
-rw-r--r-- | src/theory/arrays/array_info.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/theory/arrays/array_info.h b/src/theory/arrays/array_info.h index 3e479e0f9..319864c34 100644 --- a/src/theory/arrays/array_info.h +++ b/src/theory/arrays/array_info.h @@ -74,25 +74,8 @@ public: CTNodeList* stores; CTNodeList* in_stores; - Info(context::Context* c, Backtracker<TNode>* bck) - : isNonLinear(c, false), - rIntro1Applied(c, false), - modelRep(c,TNode()), - constArr(c,TNode()), - weakEquivPointer(c,TNode()), - weakEquivIndex(c,TNode()), - weakEquivSecondary(c,TNode()), - weakEquivSecondaryReason(c,TNode()) { - indices = new(true)CTNodeList(c); - stores = new(true)CTNodeList(c); - in_stores = new(true)CTNodeList(c); - } - - ~Info() { - indices->deleteSelf(); - stores->deleteSelf(); - in_stores->deleteSelf(); - } + Info(context::Context* c, Backtracker<TNode>* bck); + ~Info(); /** * prints the information |