Page 1 of 1

Reporting bug: Memory leak in FastReport IBDAC component

Posted: Sun 13 Apr 2008 10:57
by zd
Hi guys,

I've found a memory leak in IBDAC Third Party Components / FastReport components.

In frxDACComponents.pas:

Code: Select all

constructor TfrxDACDatabase.Create(AOwner: TComponent);
begin
  inherited;
  FParams := TstringList.Create;
end;
But FParams is not freed later which leads to a big bad memory leak!

Solution:

Replace

Code: Select all

destructor TfrxDACDatabase.Destroy;
begin
  inherited;
end;
with

Code: Select all

destructor TfrxDACDatabase.Destroy;
begin
  inherited;
  FParams.Free;
end;
Regards,
Zd

Posted: Mon 14 Apr 2008 07:19
by Plash
Thank you for information. We'll fix this bug in the next IBDAC build.