RoutineOp / delphi-code-coverage

Automatically exported from code.google.com/p/delphi-code-coverage
0 stars 1 forks source link

Memory leak in TCoverage #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The TUnitCoverage objects in the private unitlist variable is not freed, nor is 
unitlist.

Fix:

destructor TCoverage.Destroy;
var
  lp : Integer;
begin
  for lp := 0 to Pred(unitlist.Count) do
    unitlist[lp].Free;

  unitlist.Free;
  inherited;
end;

Original issue reported on code.google.com by ring....@gmail.com on 31 Jul 2010 at 5:30

GoogleCodeExporter commented 9 years ago
Fixed in 0.4

Original comment by christer...@gmail.com on 9 Aug 2010 at 8:26