Small memory leak in function SaveChartDialog

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
zur003
Newbie
Newbie
Posts: 4
Joined: Mon Nov 20, 2006 12:00 am

Small memory leak in function SaveChartDialog

Post by zur003 » Tue Nov 28, 2006 5:41 am

There is a memory leak in the function SaveChartDialog in TeeEditPro.pas in verion 7.0.7 of Tee Chart Professional. A series of TTeeExportFormat objects are stored in the Objects member of the TStringList named "tmp", but are never freed. This is easily fixed: the finally clause should contain something like:
for t:=0 to tmp.Count-1 do
tmp.Objects[t].Free;

David Berneda
Site Admin
Site Admin
Posts: 83
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Post by David Berneda » Wed Nov 29, 2006 1:45 pm

Thanks, leak fixed in latest v8 beta sources.

Post Reply