mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 22:29:23 +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;
|
||||
|
||||
begin
|
||||
Clear;
|
||||
FFieldList.Free;
|
||||
if Assigned(FFieldList) then
|
||||
Clear;
|
||||
FreeAndNil(FFieldList);
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user