* take care of destructor being called if constructor failed

git-svn-id: trunk@22601 -
This commit is contained in:
michael 2012-10-09 11:07:08 +00:00
parent 74149ab196
commit fdf66d1be9

View File

@ -3142,8 +3142,9 @@ end;
Destructor TFields.Destroy;
begin
Clear;
FFieldList.Free;
if Assigned(FFieldList) then
Clear;
FreeAndNil(FFieldList);
inherited Destroy;
end;