* 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; Destructor TFields.Destroy;
begin begin
Clear; if Assigned(FFieldList) then
FFieldList.Free; Clear;
FreeAndNil(FFieldList);
inherited Destroy; inherited Destroy;
end; end;