mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 20:49:49 +02:00
* Fixed mem-leak
git-svn-id: trunk@16824 -
This commit is contained in:
parent
27bb39a1ca
commit
9191eb35a9
@ -84,6 +84,7 @@ type
|
||||
procedure GetChildren(Proc: TGetChildProc; Root: TComponent); override;
|
||||
property ContentProducerList: TFPList read GetContentProducerList;
|
||||
public
|
||||
destructor Destroy; override;
|
||||
function ContentProducerCount: integer;
|
||||
|
||||
function ProduceContent : string;
|
||||
@ -261,6 +262,13 @@ begin
|
||||
Proc(ContentProducers[i]);
|
||||
end;
|
||||
|
||||
destructor TWebPage.Destroy;
|
||||
begin
|
||||
if assigned(FContentProducers) then
|
||||
FreeAndNil(FContentProducers);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
function TWebPage.ContentProducerCount: integer;
|
||||
begin
|
||||
if assigned(FContentProducers) then
|
||||
|
Loading…
Reference in New Issue
Block a user