Teechart memory leak when writing PDF?
Posted: Mon Oct 31, 2005 8:34 pm
Hi,
I have added PDF export to my list of exported chart format and notice that there seems to be a memory leak with OffsetList - see below. Is it the way I'm using it or do I see OffsetList is not being freed, only cleared in Destroy?
Regards,
Brian
constructor TTeePDFPage.Create;
begin
inherited Create;
IObjCount := 0;
FChartObject := TPDFChartObject.Create;
OffsetList := TStringList.Create;
end;
destructor TTeePDFPage.Destroy;
begin
FChartObject.Free;
OffsetList.Clear;
inherited;
end;
I have added PDF export to my list of exported chart format and notice that there seems to be a memory leak with OffsetList - see below. Is it the way I'm using it or do I see OffsetList is not being freed, only cleared in Destroy?
Regards,
Brian
constructor TTeePDFPage.Create;
begin
inherited Create;
IObjCount := 0;
FChartObject := TPDFChartObject.Create;
OffsetList := TStringList.Create;
end;
destructor TTeePDFPage.Destroy;
begin
FChartObject.Free;
OffsetList.Clear;
inherited;
end;