X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=cyclegraph.cc;h=e96549ff1fddcace369f57102572edf2c6bf9c32;hb=fa36db2da01d7da10e0cd375fda3c2db4ce3a05b;hp=240d24ffadd0b52af69e9318e53172f0806c6bb8;hpb=0dc4895e7c40b9588d5ece94cba09e2fe2af420d;p=model-checker.git diff --git a/cyclegraph.cc b/cyclegraph.cc index 240d24f..e96549f 100644 --- a/cyclegraph.cc +++ b/cyclegraph.cc @@ -8,7 +8,7 @@ /** Initializes a CycleGraph object. */ CycleGraph::CycleGraph() : discovered(new HashTable(16)), - queue(new std::vector< const CycleNode *, ModelAlloc >()), + queue(new std::vector< const CycleNode *, ModelAlloc >()), hasCycles(false), oldCycles(false) { @@ -17,6 +17,7 @@ CycleGraph::CycleGraph() : /** CycleGraph destructor */ CycleGraph::~CycleGraph() { + delete queue; delete discovered; }