# HG changeset patch # User deba # Date 1157537448 0 # Node ID 597714206430ce148f112f19e2745a71b035611c # Parent 2f2ac1b1ca1ec74f29954bb73c39a5df13cc2c3f Bug fix in DescriptorMap Avoiding the possibility of the memory leak diff -r 2f2ac1b1ca1e -r 597714206430 lemon/graph_utils.h --- a/lemon/graph_utils.h Wed Sep 06 10:01:15 2006 +0000 +++ b/lemon/graph_utils.h Wed Sep 06 10:10:48 2006 +0000 @@ -1260,7 +1260,12 @@ /// /// Constructor for descriptor map. DescriptorMap(const Graph& _graph) : Map(_graph) { - build(); + Item it; + const typename Map::Notifier* notifier = Map::getNotifier(); + for (notifier->first(it); it != INVALID; notifier->next(it)) { + Map::set(it, invMap.size()); + invMap.push_back(it); + } } protected: