diff -r d886e4b131e6 -r c7ee2a2a3cff lemon/bellman_ford.h --- a/lemon/bellman_ford.h Tue May 09 09:23:39 2006 +0000 +++ b/lemon/bellman_ford.h Tue May 09 11:25:34 2006 +0000 @@ -326,13 +326,13 @@ BellmanFord(const Graph& _graph, const LengthMap& _length) : graph(&_graph), length(&_length), _pred(0), local_pred(false), - _dist(0), local_dist(false) {} + _dist(0), local_dist(false), _mask(0) {} ///Destructor. ~BellmanFord() { if(local_pred) delete _pred; if(local_dist) delete _dist; - delete _mask; + if(_mask) delete _mask; } /// \brief Sets the length map.