gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Memory leak bugfix in BellmanFord (#51)
0 1 0
default
1 file changed with 7 insertions and 1 deletions:
↑ Collapse diff ↑
Show white space 2 line context
... ...
@@ -239,3 +239,5 @@
239 239
      }
240
      _mask = new MaskMap(*_gr, false);
240
      if(!_mask) {
241
        _mask = new MaskMap(*_gr);
242
      }
241 243
    }
... ...
@@ -406,2 +408,6 @@
406 408
	}
409
      } else {
410
	for (NodeIt it(*_gr); it != INVALID; ++it) {
411
	  _mask->set(it, false);
412
	}
407 413
      }
0 comments (0 inline)