diff --git a/anabatic/src/Dijkstra.cpp b/anabatic/src/Dijkstra.cpp index 2fef02c0..207af8d8 100644 --- a/anabatic/src/Dijkstra.cpp +++ b/anabatic/src/Dijkstra.cpp @@ -1779,6 +1779,7 @@ namespace Anabatic { //_checkEdges(); _sources.clear(); _targets.clear(); + _queue.clear(); _searchArea.makeEmpty(); _connectedsId = 0; } diff --git a/hurricane/src/hurricane/hurricane/Collection.h b/hurricane/src/hurricane/hurricane/Collection.h index 9a6042ac..1f3b5664 100644 --- a/hurricane/src/hurricane/hurricane/Collection.h +++ b/hurricane/src/hurricane/hurricane/Collection.h @@ -206,6 +206,7 @@ template class Collection { class iterator { public: iterator ( Locator* l ) : _locator(l) {} + ~iterator () { delete _locator; } bool operator== ( const iterator& o) const { return not (*this != o); } iterator& operator++ () { _locator->progress(); return *this; } Type operator* () { return _locator->getElement(); }