mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 13:09:43 +02:00
* take care of destructor being called if constructor failed
git-svn-id: trunk@22601 -
This commit is contained in:
parent
74149ab196
commit
fdf66d1be9
@ -3142,8 +3142,9 @@ end;
|
|||||||
Destructor TFields.Destroy;
|
Destructor TFields.Destroy;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Clear;
|
if Assigned(FFieldList) then
|
||||||
FFieldList.Free;
|
Clear;
|
||||||
|
FreeAndNil(FFieldList);
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user