Memory leak in v.8.01
Posted: Sat Jun 30, 2007 12:13 pm
Hello,
I just discovered a small memory leak in TeeChart v. 8.01 (June 26).
File TeePenDlg.pas,
procedure TPenDialog.FormShow(Sender: TObject);
The first 2 lines (line 221 and 222) should be
================
if not Assigned(BackupPen) then
BackupPen:=TChartPen.Create(nil);
================
The reason is that FormShow event can be called many times in the Chart Editor for the same TPenDialog form, causing repetitive construction of BackupPen.
Sincerely,
Michael
I just discovered a small memory leak in TeeChart v. 8.01 (June 26).
File TeePenDlg.pas,
procedure TPenDialog.FormShow(Sender: TObject);
The first 2 lines (line 221 and 222) should be
================
if not Assigned(BackupPen) then
BackupPen:=TChartPen.Create(nil);
================
The reason is that FormShow event can be called many times in the Chart Editor for the same TPenDialog form, causing repetitive construction of BackupPen.
Sincerely,
Michael