Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

MemoryLeak: ppDevice.pas:TppPublisher.AddPageToCache

edited October 2006 in End User
ppDevice.pas:

...

procedure TppPublisher.AddPageToCache(aPage: TppPage);
...
begin
...
liIndex := FPageCache.IndexOf(lsPage);

if liIndex <> -1 then
begin
{+}{#NB}// Fix Memory Leak:
lPage := Pages[liIndex];
FPageCache.Delete(liIndex);
lPage.Free;
{+.}
end;

lPage := TppPage.Create(nil);
...



--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited October 2006

    Thanks for providing this information. Your recommendation will be included
    in the next maintenance release.


    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.