projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
424d7c7
)
nodestack: destroy Nodes properly in ~NodeStack()
author
Brian Norris
<banorris@uci.edu>
Thu, 4 Oct 2012 21:59:44 +0000
(14:59 -0700)
committer
Brian Norris
<banorris@uci.edu>
Thu, 4 Oct 2012 21:59:44 +0000
(14:59 -0700)
nodestack.cc
patch
|
blob
|
history
diff --git
a/nodestack.cc
b/nodestack.cc
index 0be23af47643d269f207e80a474e03ea4ab84847..6b1d4ef9c86929fdd14d14172149abaacec96133 100644
(file)
--- a/
nodestack.cc
+++ b/
nodestack.cc
@@
-372,6
+372,8
@@
NodeStack::NodeStack() :
NodeStack::~NodeStack()
{
+ for (unsigned int i = 0; i < node_list.size(); i++)
+ delete node_list[i];
}
void NodeStack::print()