lcl: in TDBLookup remove unnecessary initialization and use destroy for objects created unconditionally

git-svn-id: trunk@30330 -
This commit is contained in:
blikblum 2011-04-17 01:31:30 +00:00
parent 3cbd34d275
commit 574d3f7e6c

View File

@ -72,16 +72,16 @@ begin
FListLink.Control := Self;
FListLink.OnActiveChange := @ActiveChange;
FListLink.OnEditingChange:=@EditingChange;
FHasLookUpField:= False;
FListLinkTmpSetActive := False;
FLookupCache := False;
//FHasLookUpField:= False;
//FListLinkTmpSetActive := False;
//FLookupCache := False;
end;
destructor TDBLookup.Destroy;
begin
FDataFields.Free;
FKeyFields.Free;
FListLink.Free;
FDataFields.Destroy;
FKeyFields.Destroy;
FListLink.Destroy;
FLookupList.Free;
inherited Destroy;
end;