MemoryLeak: ppDevice.pas:TppPublisher.AddPageToCache
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
...
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
This discussion has been closed.
Comments
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