View Issue Details

IDProjectCategoryView StatusLast Update
0001924JEDI VCL00 JVCL Componentspublic2004-07-04 05:50
ReporterglchapmanAssigned Touser72 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001924: TJvCustomPreviewControl.Delete leaves stale pointer in Page list
DescriptionNote here:

procedure TJvCustomPreviewControl.Delete(Index: Integer);
begin
  TMetaFile(FPages[Index]).Free;
end;

The page (metafile) is freed, but the reference to it is left in the FPages list. A better implementation would be something like this:

procedure TJvCustomPreviewControl.Delete(Index: Integer);
var page: TMetaFile;
begin
  page:= FPages[Index];
  FPages.Delete(Index);
  page.Free;
  Change;
end;

TagsNo tags attached.

Activities

user72

2004-07-04 05:50

  ~0004678

Fixed in CVS

Issue History

Date Modified Username Field Change
2004-07-03 18:48 glchapman New Issue
2004-07-04 05:50 user72 Status new => resolved
2004-07-04 05:50 user72 Resolution open => fixed
2004-07-04 05:50 user72 Assigned To => user72
2004-07-04 05:50 user72 Note Added: 0004678