Small memory leak in function SaveChartDialog
Posted: 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;
for t:=0 to tmp.Count-1 do
tmp.Objects[t].Free;